Resource: Schema
Defines the structure and layout of a type of document data.
| JSON representation |
|---|
{ "name": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "structSchema": { object }, "jsonSchema": string // End of mutually exclusive fields. } |
| Fields | |
|---|---|
name |
Immutable. The full resource name of the schema, in the format of This field must be a UTF-8 encoded string with a length limit of 1024 characters. |
Schema representation. One of struct_schema or json_schema should be provided otherwise an INVALID_ARGUMENT error is thrown. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: |
|
structSchema |
The structured representation of the schema. |
jsonSchema |
The JSON representation of the schema. |
| End of mutually exclusive fields. | |
Methods |
|
|---|---|
|
Creates a Schema. |
|
Deletes a Schema. |
|
Gets a Schema. |
|
Gets a list of Schemas. |
|
Updates a Schema. |