Debian Codegraph @

docs/dyn/firebasedataconnect_v1.projects.locations.services.schemas.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="firebasedataconnect_v1.html">Firebase SQL Connect API</a> . <a href="firebasedataconnect_v1.projects.html">projects</a> . <a href="firebasedataconnect_v1.projects.locations.html">locations</a> . <a href="firebasedataconnect_v1.projects.locations.services.html">services</a> . <a href="firebasedataconnect_v1.projects.locations.services.schemas.html">schemas</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, requestId=None, schemaId=None, validateOnly=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new Schema in a given project and location. Only creation of `schemas/main` is supported and calling create with any other schema ID will result in an error.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, allowMissing=None, etag=None, force=None, requestId=None, validateOnly=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a single Schema. Because the schema and connectors must be compatible at all times, if this is called while any connectors are active, this will result in an error.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets details of a single Schema.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists Schemas in a given project and location.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates the parameters of a single Schema, and creates a new SchemaRevision with the updated Schema.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, requestId=None, schemaId=None, validateOnly=None, x__xgafv=None)</code>
106 <pre>Creates a new Schema in a given project and location. Only creation of `schemas/main` is supported and calling create with any other schema ID will result in an error.
107
108 Args:
109 parent: string, Required. Value for parent. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # The application schema of a Firebase SQL Connect service.
114 &quot;annotations&quot;: { # Optional. Stores small amounts of arbitrary data.
115 &quot;a_key&quot;: &quot;A String&quot;,
116 },
117 &quot;createTime&quot;: &quot;A String&quot;, # Output only. [Output only] Create time stamp.
118 &quot;datasources&quot;: [ # Required. The data sources linked in the schema.
119 { # A data source that backs Firebase SQL Connect services.
120 &quot;httpGraphql&quot;: { # Settings for HTTP GraphQL server webhook. # HTTP GraphQL server webhook configurations.
121 &quot;timeout&quot;: &quot;A String&quot;, # Optional. Timeout duration for the HTTP request.
122 &quot;uri&quot;: &quot;A String&quot;, # Required. The endpoint of the HTTP GraphQL server.
123 },
124 &quot;postgresql&quot;: { # Settings for PostgreSQL data source. # PostgreSQL configurations.
125 &quot;cloudSql&quot;: { # Settings for CloudSQL instance configuration. # Cloud SQL configurations.
126 &quot;instance&quot;: &quot;A String&quot;, # Required. Name of the CloudSQL instance, in the format: ``` projects/{project}/locations/{location}/instances/{instance} ```
127 },
128 &quot;database&quot;: &quot;A String&quot;, # Required. Name of the PostgreSQL database.
129 &quot;ephemeral&quot;: True or False, # Output only. Ephemeral is true if this SQL Connect service is served from temporary in-memory emulation of Postgres. While Cloud SQL is being provisioned, the SQL Connect service provides the ephemeral service to help developers get started. Once the Cloud SQL is provisioned, SQL Connect service will transfer its data on a best-effort basis to the Cloud SQL instance. WARNING: Ephemeral data sources will expire after 24 hour. The data will be lost if they aren&#x27;t transferred to the Cloud SQL instance. WARNING: When `ephemeral=true`, mutations to the database are not guaranteed to be durably persisted, even if an OK status code is returned. All or parts of the data may be lost or reverted to earlier versions.
130 &quot;schema&quot;: &quot;A String&quot;, # Optional. User-configured PostgreSQL schema. Defaults to &quot;public&quot; if not specified.
131 &quot;schemaMigration&quot;: &quot;A String&quot;, # Optional. Configure how to perform automatic PostgreSQL schema migration before deploying the FDC schema. This is an additive-only operation.
132 &quot;schemaValidation&quot;: &quot;A String&quot;, # Optional. Configure how much PostgreSQL schema validation to perform against the live database before deploying the FDC schema.
133 &quot;unlinked&quot;: True or False, # No Postgres data source is linked. If set, don&#x27;t allow `database` and `schema_validation` to be configured.
134 },
135 },
136 ],
137 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Mutable human-readable name. 63 character limit.
138 &quot;etag&quot;: &quot;A String&quot;, # Output only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154)
139 &quot;labels&quot;: { # Optional. Labels as key value pairs.
140 &quot;a_key&quot;: &quot;A String&quot;,
141 },
142 &quot;name&quot;: &quot;A String&quot;, # Identifier. The relative resource name of the schema, in the format: ``` projects/{project}/locations/{location}/services/{service}/schemas/{schema} ``` Right now, the only supported schema is &quot;main&quot;.
143 &quot;reconciling&quot;: True or False, # Output only. A field that if true, indicates that the system is working to compile and deploy the schema.
144 &quot;source&quot;: { # Used to represent a set of source files. # Required. The source files that comprise the application schema.
145 &quot;files&quot;: [ # Required. The files that comprise the source set.
146 { # Individual files.
147 &quot;content&quot;: &quot;A String&quot;, # Required. The file&#x27;s textual content.
148 &quot;path&quot;: &quot;A String&quot;, # Required. The file name including folder path, if applicable. The path should be relative to a local workspace (e.g. dataconnect/(schema|connector)/*.gql) and not an absolute path (e.g. /absolute/path/(schema|connector)/*.gql).
149 },
150 ],
151 },
152 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned, unique identifier.
153 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. [Output only] Update time stamp.
154 }
155
156 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 the 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).
157 schemaId: string, Required. The ID to use for the schema, which will become the final component of the schema&#x27;s resource name. Currently, only `main` is supported and any other schema ID will result in an error.
158 validateOnly: boolean, Optional. If set, validate the request and preview the Schema, but do not actually update it.
159 x__xgafv: string, V1 error format.
160 Allowed values
161 1 - v1 error format
162 2 - v2 error format
163
164 Returns:
165 An object of the form:
166
167 { # This resource represents a long-running operation that is the result of a network API call.
168 &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.
169 &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.
170 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
171 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
172 {
173 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
174 },
175 ],
176 &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.
177 },
178 &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.
179 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
180 },
181 &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}`.
182 &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`.
183 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
184 },
185 }</pre>
186 </div>
187
188 <div class="method">
189 <code class="details" id="delete">delete(name, allowMissing=None, etag=None, force=None, requestId=None, validateOnly=None, x__xgafv=None)</code>
190 <pre>Deletes a single Schema. Because the schema and connectors must be compatible at all times, if this is called while any connectors are active, this will result in an error.
191
192 Args:
193 name: string, Required. The name of the schema to delete, in the format: ``` projects/{project}/locations/{location}/services/{service}/schemas/{schema} ``` (required)
194 allowMissing: boolean, Optional. If true and the Schema is not found, the request will succeed but no action will be taken on the server.
195 etag: string, Optional. The etag of the Schema. If this is provided, it must match the server&#x27;s etag.
196 force: boolean, Optional. If set to true, any child resources (i.e. SchemaRevisions) will also be deleted.
197 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 the 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).
198 validateOnly: boolean, Optional. If set, validate the request and preview the Schema, but do not actually delete it.
199 x__xgafv: string, V1 error format.
200 Allowed values
201 1 - v1 error format
202 2 - v2 error format
203
204 Returns:
205 An object of the form:
206
207 { # This resource represents a long-running operation that is the result of a network API call.
208 &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.
209 &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.
210 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
211 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
212 {
213 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
214 },
215 ],
216 &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.
217 },
218 &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.
219 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
220 },
221 &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}`.
222 &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`.
223 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
224 },
225 }</pre>
226 </div>
227
228 <div class="method">
229 <code class="details" id="get">get(name, x__xgafv=None)</code>
230 <pre>Gets details of a single Schema.
231
232 Args:
233 name: string, Required. The name of the schema to retrieve, in the format: ``` projects/{project}/locations/{location}/services/{service}/schemas/{schema} ``` (required)
234 x__xgafv: string, V1 error format.
235 Allowed values
236 1 - v1 error format
237 2 - v2 error format
238
239 Returns:
240 An object of the form:
241
242 { # The application schema of a Firebase SQL Connect service.
243 &quot;annotations&quot;: { # Optional. Stores small amounts of arbitrary data.
244 &quot;a_key&quot;: &quot;A String&quot;,
245 },
246 &quot;createTime&quot;: &quot;A String&quot;, # Output only. [Output only] Create time stamp.
247 &quot;datasources&quot;: [ # Required. The data sources linked in the schema.
248 { # A data source that backs Firebase SQL Connect services.
249 &quot;httpGraphql&quot;: { # Settings for HTTP GraphQL server webhook. # HTTP GraphQL server webhook configurations.
250 &quot;timeout&quot;: &quot;A String&quot;, # Optional. Timeout duration for the HTTP request.
251 &quot;uri&quot;: &quot;A String&quot;, # Required. The endpoint of the HTTP GraphQL server.
252 },
253 &quot;postgresql&quot;: { # Settings for PostgreSQL data source. # PostgreSQL configurations.
254 &quot;cloudSql&quot;: { # Settings for CloudSQL instance configuration. # Cloud SQL configurations.
255 &quot;instance&quot;: &quot;A String&quot;, # Required. Name of the CloudSQL instance, in the format: ``` projects/{project}/locations/{location}/instances/{instance} ```
256 },
257 &quot;database&quot;: &quot;A String&quot;, # Required. Name of the PostgreSQL database.
258 &quot;ephemeral&quot;: True or False, # Output only. Ephemeral is true if this SQL Connect service is served from temporary in-memory emulation of Postgres. While Cloud SQL is being provisioned, the SQL Connect service provides the ephemeral service to help developers get started. Once the Cloud SQL is provisioned, SQL Connect service will transfer its data on a best-effort basis to the Cloud SQL instance. WARNING: Ephemeral data sources will expire after 24 hour. The data will be lost if they aren&#x27;t transferred to the Cloud SQL instance. WARNING: When `ephemeral=true`, mutations to the database are not guaranteed to be durably persisted, even if an OK status code is returned. All or parts of the data may be lost or reverted to earlier versions.
259 &quot;schema&quot;: &quot;A String&quot;, # Optional. User-configured PostgreSQL schema. Defaults to &quot;public&quot; if not specified.
260 &quot;schemaMigration&quot;: &quot;A String&quot;, # Optional. Configure how to perform automatic PostgreSQL schema migration before deploying the FDC schema. This is an additive-only operation.
261 &quot;schemaValidation&quot;: &quot;A String&quot;, # Optional. Configure how much PostgreSQL schema validation to perform against the live database before deploying the FDC schema.
262 &quot;unlinked&quot;: True or False, # No Postgres data source is linked. If set, don&#x27;t allow `database` and `schema_validation` to be configured.
263 },
264 },
265 ],
266 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Mutable human-readable name. 63 character limit.
267 &quot;etag&quot;: &quot;A String&quot;, # Output only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154)
268 &quot;labels&quot;: { # Optional. Labels as key value pairs.
269 &quot;a_key&quot;: &quot;A String&quot;,
270 },
271 &quot;name&quot;: &quot;A String&quot;, # Identifier. The relative resource name of the schema, in the format: ``` projects/{project}/locations/{location}/services/{service}/schemas/{schema} ``` Right now, the only supported schema is &quot;main&quot;.
272 &quot;reconciling&quot;: True or False, # Output only. A field that if true, indicates that the system is working to compile and deploy the schema.
273 &quot;source&quot;: { # Used to represent a set of source files. # Required. The source files that comprise the application schema.
274 &quot;files&quot;: [ # Required. The files that comprise the source set.
275 { # Individual files.
276 &quot;content&quot;: &quot;A String&quot;, # Required. The file&#x27;s textual content.
277 &quot;path&quot;: &quot;A String&quot;, # Required. The file name including folder path, if applicable. The path should be relative to a local workspace (e.g. dataconnect/(schema|connector)/*.gql) and not an absolute path (e.g. /absolute/path/(schema|connector)/*.gql).
278 },
279 ],
280 },
281 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned, unique identifier.
282 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. [Output only] Update time stamp.
283 }</pre>
284 </div>
285
286 <div class="method">
287 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
288 <pre>Lists Schemas in a given project and location.
289
290 Args:
291 parent: string, Required. Value of parent. (required)
292 filter: string, Optional. Filtering results.
293 orderBy: string, Optional. Hint for how to order the results.
294 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
295 pageToken: string, Optional. A page token, received from a previous `ListSchemas` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSchemas` must match the call that provided the page token.
296 x__xgafv: string, V1 error format.
297 Allowed values
298 1 - v1 error format
299 2 - v2 error format
300
301 Returns:
302 An object of the form:
303
304 { # Message for response to listing Schemas. By default, `schemas.source` will not be included in the response. To specify the fields included in the response, the response field mask can be provided by using the query parameter `$fields` or the header `X-Goog-FieldMask`.
305 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
306 &quot;schemas&quot;: [ # The list of Schemas.
307 { # The application schema of a Firebase SQL Connect service.
308 &quot;annotations&quot;: { # Optional. Stores small amounts of arbitrary data.
309 &quot;a_key&quot;: &quot;A String&quot;,
310 },
311 &quot;createTime&quot;: &quot;A String&quot;, # Output only. [Output only] Create time stamp.
312 &quot;datasources&quot;: [ # Required. The data sources linked in the schema.
313 { # A data source that backs Firebase SQL Connect services.
314 &quot;httpGraphql&quot;: { # Settings for HTTP GraphQL server webhook. # HTTP GraphQL server webhook configurations.
315 &quot;timeout&quot;: &quot;A String&quot;, # Optional. Timeout duration for the HTTP request.
316 &quot;uri&quot;: &quot;A String&quot;, # Required. The endpoint of the HTTP GraphQL server.
317 },
318 &quot;postgresql&quot;: { # Settings for PostgreSQL data source. # PostgreSQL configurations.
319 &quot;cloudSql&quot;: { # Settings for CloudSQL instance configuration. # Cloud SQL configurations.
320 &quot;instance&quot;: &quot;A String&quot;, # Required. Name of the CloudSQL instance, in the format: ``` projects/{project}/locations/{location}/instances/{instance} ```
321 },
322 &quot;database&quot;: &quot;A String&quot;, # Required. Name of the PostgreSQL database.
323 &quot;ephemeral&quot;: True or False, # Output only. Ephemeral is true if this SQL Connect service is served from temporary in-memory emulation of Postgres. While Cloud SQL is being provisioned, the SQL Connect service provides the ephemeral service to help developers get started. Once the Cloud SQL is provisioned, SQL Connect service will transfer its data on a best-effort basis to the Cloud SQL instance. WARNING: Ephemeral data sources will expire after 24 hour. The data will be lost if they aren&#x27;t transferred to the Cloud SQL instance. WARNING: When `ephemeral=true`, mutations to the database are not guaranteed to be durably persisted, even if an OK status code is returned. All or parts of the data may be lost or reverted to earlier versions.
324 &quot;schema&quot;: &quot;A String&quot;, # Optional. User-configured PostgreSQL schema. Defaults to &quot;public&quot; if not specified.
325 &quot;schemaMigration&quot;: &quot;A String&quot;, # Optional. Configure how to perform automatic PostgreSQL schema migration before deploying the FDC schema. This is an additive-only operation.
326 &quot;schemaValidation&quot;: &quot;A String&quot;, # Optional. Configure how much PostgreSQL schema validation to perform against the live database before deploying the FDC schema.
327 &quot;unlinked&quot;: True or False, # No Postgres data source is linked. If set, don&#x27;t allow `database` and `schema_validation` to be configured.
328 },
329 },
330 ],
331 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Mutable human-readable name. 63 character limit.
332 &quot;etag&quot;: &quot;A String&quot;, # Output only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154)
333 &quot;labels&quot;: { # Optional. Labels as key value pairs.
334 &quot;a_key&quot;: &quot;A String&quot;,
335 },
336 &quot;name&quot;: &quot;A String&quot;, # Identifier. The relative resource name of the schema, in the format: ``` projects/{project}/locations/{location}/services/{service}/schemas/{schema} ``` Right now, the only supported schema is &quot;main&quot;.
337 &quot;reconciling&quot;: True or False, # Output only. A field that if true, indicates that the system is working to compile and deploy the schema.
338 &quot;source&quot;: { # Used to represent a set of source files. # Required. The source files that comprise the application schema.
339 &quot;files&quot;: [ # Required. The files that comprise the source set.
340 { # Individual files.
341 &quot;content&quot;: &quot;A String&quot;, # Required. The file&#x27;s textual content.
342 &quot;path&quot;: &quot;A String&quot;, # Required. The file name including folder path, if applicable. The path should be relative to a local workspace (e.g. dataconnect/(schema|connector)/*.gql) and not an absolute path (e.g. /absolute/path/(schema|connector)/*.gql).
343 },
344 ],
345 },
346 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned, unique identifier.
347 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. [Output only] Update time stamp.
348 },
349 ],
350 &quot;unreachable&quot;: [ # Locations that could not be reached.
351 &quot;A String&quot;,
352 ],
353 }</pre>
354 </div>
355
356 <div class="method">
357 <code class="details" id="list_next">list_next()</code>
358 <pre>Retrieves the next page of results.
359
360 Args:
361 previous_request: The request for the previous page. (required)
362 previous_response: The response from the request for the previous page. (required)
363
364 Returns:
365 A request object that you can call &#x27;execute()&#x27; on to request the next
366 page. Returns None if there are no more items in the collection.
367 </pre>
368 </div>
369
370 <div class="method">
371 <code class="details" id="patch">patch(name, allowMissing=None, body=None, requestId=None, updateMask=None, validateOnly=None, x__xgafv=None)</code>
372 <pre>Updates the parameters of a single Schema, and creates a new SchemaRevision with the updated Schema.
373
374 Args:
375 name: string, Identifier. The relative resource name of the schema, in the format: ``` projects/{project}/locations/{location}/services/{service}/schemas/{schema} ``` Right now, the only supported schema is &quot;main&quot;. (required)
376 body: object, The request body.
377 The object takes the form of:
378
379 { # The application schema of a Firebase SQL Connect service.
380 &quot;annotations&quot;: { # Optional. Stores small amounts of arbitrary data.
381 &quot;a_key&quot;: &quot;A String&quot;,
382 },
383 &quot;createTime&quot;: &quot;A String&quot;, # Output only. [Output only] Create time stamp.
384 &quot;datasources&quot;: [ # Required. The data sources linked in the schema.
385 { # A data source that backs Firebase SQL Connect services.
386 &quot;httpGraphql&quot;: { # Settings for HTTP GraphQL server webhook. # HTTP GraphQL server webhook configurations.
387 &quot;timeout&quot;: &quot;A String&quot;, # Optional. Timeout duration for the HTTP request.
388 &quot;uri&quot;: &quot;A String&quot;, # Required. The endpoint of the HTTP GraphQL server.
389 },
390 &quot;postgresql&quot;: { # Settings for PostgreSQL data source. # PostgreSQL configurations.
391 &quot;cloudSql&quot;: { # Settings for CloudSQL instance configuration. # Cloud SQL configurations.
392 &quot;instance&quot;: &quot;A String&quot;, # Required. Name of the CloudSQL instance, in the format: ``` projects/{project}/locations/{location}/instances/{instance} ```
393 },
394 &quot;database&quot;: &quot;A String&quot;, # Required. Name of the PostgreSQL database.
395 &quot;ephemeral&quot;: True or False, # Output only. Ephemeral is true if this SQL Connect service is served from temporary in-memory emulation of Postgres. While Cloud SQL is being provisioned, the SQL Connect service provides the ephemeral service to help developers get started. Once the Cloud SQL is provisioned, SQL Connect service will transfer its data on a best-effort basis to the Cloud SQL instance. WARNING: Ephemeral data sources will expire after 24 hour. The data will be lost if they aren&#x27;t transferred to the Cloud SQL instance. WARNING: When `ephemeral=true`, mutations to the database are not guaranteed to be durably persisted, even if an OK status code is returned. All or parts of the data may be lost or reverted to earlier versions.
396 &quot;schema&quot;: &quot;A String&quot;, # Optional. User-configured PostgreSQL schema. Defaults to &quot;public&quot; if not specified.
397 &quot;schemaMigration&quot;: &quot;A String&quot;, # Optional. Configure how to perform automatic PostgreSQL schema migration before deploying the FDC schema. This is an additive-only operation.
398 &quot;schemaValidation&quot;: &quot;A String&quot;, # Optional. Configure how much PostgreSQL schema validation to perform against the live database before deploying the FDC schema.
399 &quot;unlinked&quot;: True or False, # No Postgres data source is linked. If set, don&#x27;t allow `database` and `schema_validation` to be configured.
400 },
401 },
402 ],
403 &quot;displayName&quot;: &quot;A String&quot;, # Optional. Mutable human-readable name. 63 character limit.
404 &quot;etag&quot;: &quot;A String&quot;, # Output only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154)
405 &quot;labels&quot;: { # Optional. Labels as key value pairs.
406 &quot;a_key&quot;: &quot;A String&quot;,
407 },
408 &quot;name&quot;: &quot;A String&quot;, # Identifier. The relative resource name of the schema, in the format: ``` projects/{project}/locations/{location}/services/{service}/schemas/{schema} ``` Right now, the only supported schema is &quot;main&quot;.
409 &quot;reconciling&quot;: True or False, # Output only. A field that if true, indicates that the system is working to compile and deploy the schema.
410 &quot;source&quot;: { # Used to represent a set of source files. # Required. The source files that comprise the application schema.
411 &quot;files&quot;: [ # Required. The files that comprise the source set.
412 { # Individual files.
413 &quot;content&quot;: &quot;A String&quot;, # Required. The file&#x27;s textual content.
414 &quot;path&quot;: &quot;A String&quot;, # Required. The file name including folder path, if applicable. The path should be relative to a local workspace (e.g. dataconnect/(schema|connector)/*.gql) and not an absolute path (e.g. /absolute/path/(schema|connector)/*.gql).
415 },
416 ],
417 },
418 &quot;uid&quot;: &quot;A String&quot;, # Output only. System-assigned, unique identifier.
419 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. [Output only] Update time stamp.
420 }
421
422 allowMissing: boolean, Optional. If true and the Schema is not found, a new Schema will be created. In this case, `update_mask` is ignored.
423 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 the 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).
424 updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the Schema 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.
425 validateOnly: boolean, Optional. If set, validate the request and preview the Schema, but do not actually update it.
426 x__xgafv: string, V1 error format.
427 Allowed values
428 1 - v1 error format
429 2 - v2 error format
430
431 Returns:
432 An object of the form:
433
434 { # This resource represents a long-running operation that is the result of a network API call.
435 &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.
436 &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.
437 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
438 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
439 {
440 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
441 },
442 ],
443 &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.
444 },
445 &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.
446 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
447 },
448 &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}`.
449 &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`.
450 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
451 },
452 }</pre>
453 </div>
454
455 </body></html>