Debian Codegraph @

docs/dyn/documentai_v1.projects.locations.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="documentai_v1.html">Cloud Document AI API</a> . <a href="documentai_v1.projects.html">projects</a> . <a href="documentai_v1.projects.locations.html">locations</a> . <a href="documentai_v1.projects.locations.schemas.html">schemas</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="documentai_v1.projects.locations.schemas.schemaVersions.html">schemaVersions()</a></code>
79 </p>
80 <p class="firstline">Returns the schemaVersions Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates a schema.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes a schema.</p>
91 <p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Gets a schema.</p>
94 <p class="toc_element">
95 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Lists Schemas.</p>
97 <p class="toc_element">
98 <code><a href="#list_next">list_next()</a></code></p>
99 <p class="firstline">Retrieves the next page of results.</p>
100 <p class="toc_element">
101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Updates a schema. Editable fields are: - `display_name` - `labels`</p>
103 <h3>Method Details</h3>
104 <div class="method">
105 <code class="details" id="close">close()</code>
106 <pre>Close httplib2 connections.</pre>
107 </div>
108
109 <div class="method">
110 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
111 <pre>Creates a schema.
112
113 Args:
114 parent: string, Required. The parent (project and location) under which to create the Schema. Format: `projects/{project}/locations/{location}` (required)
115 body: object, The request body.
116 The object takes the form of:
117
118 { # NextSchema is a collection of SchemaVersions.
119 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was created.
120 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-defined name of the Schema.
121 &quot;labels&quot;: { # Optional. The {{gcp_name_short}} labels for the Schema.
122 &quot;a_key&quot;: &quot;A String&quot;,
123 },
124 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}`
125 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was last updated.
126 }
127
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133 Returns:
134 An object of the form:
135
136 { # NextSchema is a collection of SchemaVersions.
137 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was created.
138 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-defined name of the Schema.
139 &quot;labels&quot;: { # Optional. The {{gcp_name_short}} labels for the Schema.
140 &quot;a_key&quot;: &quot;A String&quot;,
141 },
142 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}`
143 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was last updated.
144 }</pre>
145 </div>
146
147 <div class="method">
148 <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
149 <pre>Deletes a schema.
150
151 Args:
152 name: string, Required. The name of the Schema to be deleted. Format: `projects/{project}/locations/{location}/schemas/{schema}` (required)
153 force: boolean, Optional. If set to true, any child resources of this Schema will also be deleted. (Otherwise, the request will only work if the Schema has no child resources.)
154 x__xgafv: string, V1 error format.
155 Allowed values
156 1 - v1 error format
157 2 - v2 error format
158
159 Returns:
160 An object of the form:
161
162 { # This resource represents a long-running operation that is the result of a network API call.
163 &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.
164 &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.
165 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
166 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
167 {
168 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
169 },
170 ],
171 &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.
172 },
173 &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.
174 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
175 },
176 &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}`.
177 &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`.
178 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
179 },
180 }</pre>
181 </div>
182
183 <div class="method">
184 <code class="details" id="get">get(name, x__xgafv=None)</code>
185 <pre>Gets a schema.
186
187 Args:
188 name: string, Required. The name of the Schema to get. Format: `projects/{project}/locations/{location}/schemas/{schema}` (required)
189 x__xgafv: string, V1 error format.
190 Allowed values
191 1 - v1 error format
192 2 - v2 error format
193
194 Returns:
195 An object of the form:
196
197 { # NextSchema is a collection of SchemaVersions.
198 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was created.
199 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-defined name of the Schema.
200 &quot;labels&quot;: { # Optional. The {{gcp_name_short}} labels for the Schema.
201 &quot;a_key&quot;: &quot;A String&quot;,
202 },
203 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}`
204 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was last updated.
205 }</pre>
206 </div>
207
208 <div class="method">
209 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
210 <pre>Lists Schemas.
211
212 Args:
213 parent: string, Required. Format: `projects/{project}/locations/{location}` (required)
214 pageSize: integer, Optional. The maximum number of schema groups to return. If unspecified, at most `10` Schema will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`.
215 pageToken: string, Optional. Returns the schema groups sorted by creation time. The page token will point to the next Schema.
216 x__xgafv: string, V1 error format.
217 Allowed values
218 1 - v1 error format
219 2 - v2 error format
220
221 Returns:
222 An object of the form:
223
224 { # Response message for ListSchemas.
225 &quot;nextPageToken&quot;: &quot;A String&quot;, # Points to the next Schema, otherwise empty.
226 &quot;schemas&quot;: [ # The list of Schemas.
227 { # NextSchema is a collection of SchemaVersions.
228 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was created.
229 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-defined name of the Schema.
230 &quot;labels&quot;: { # Optional. The {{gcp_name_short}} labels for the Schema.
231 &quot;a_key&quot;: &quot;A String&quot;,
232 },
233 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}`
234 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was last updated.
235 },
236 ],
237 }</pre>
238 </div>
239
240 <div class="method">
241 <code class="details" id="list_next">list_next()</code>
242 <pre>Retrieves the next page of results.
243
244 Args:
245 previous_request: The request for the previous page. (required)
246 previous_response: The response from the request for the previous page. (required)
247
248 Returns:
249 A request object that you can call &#x27;execute()&#x27; on to request the next
250 page. Returns None if there are no more items in the collection.
251 </pre>
252 </div>
253
254 <div class="method">
255 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
256 <pre>Updates a schema. Editable fields are: - `display_name` - `labels`
257
258 Args:
259 name: string, Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}` (required)
260 body: object, The request body.
261 The object takes the form of:
262
263 { # NextSchema is a collection of SchemaVersions.
264 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was created.
265 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-defined name of the Schema.
266 &quot;labels&quot;: { # Optional. The {{gcp_name_short}} labels for the Schema.
267 &quot;a_key&quot;: &quot;A String&quot;,
268 },
269 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}`
270 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was last updated.
271 }
272
273 updateMask: string, Optional. The update mask to apply to the resource. **Note:** Only the following fields can be updated: - `display_name` - `labels`
274 x__xgafv: string, V1 error format.
275 Allowed values
276 1 - v1 error format
277 2 - v2 error format
278
279 Returns:
280 An object of the form:
281
282 { # NextSchema is a collection of SchemaVersions.
283 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was created.
284 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user-defined name of the Schema.
285 &quot;labels&quot;: { # Optional. The {{gcp_name_short}} labels for the Schema.
286 &quot;a_key&quot;: &quot;A String&quot;,
287 },
288 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Schema. Format: `projects/{project}/locations/{location}/schemas/{schema}`
289 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the Schema was last updated.
290 }</pre>
291 </div>
292
293 </body></html>