extended_metadata_schemas
Creates, updates, deletes, gets or lists an extended_metadata_schemas resource.
Overview
| Name | extended_metadata_schemas |
| Type | Resource |
| Id | google.apphub.extended_metadata_schemas |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Resource name of the schema. Format: projects//locations//extendedMetadataSchemas/ |
jsonSchema | string | Output only. The JSON schema as a string. |
schemaVersion | string (int64) | Output only. The version of the schema. New versions are required to be backwards compatible. |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. Resource name of the schema. Format: projects//locations//extendedMetadataSchemas/ |
jsonSchema | string | Output only. The JSON schema as a string. |
schemaVersion | string (int64) | Output only. The version of the schema. New versions are required to be backwards compatible. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, extendedMetadataSchemasId | Gets an Extended Metadata Schema. | |
list | select | projectsId, locationsId | pageSize, pageToken | Lists Extended Metadata Schemas available in a host project and location. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
extendedMetadataSchemasId | string | |
locationsId | string | |
projectsId | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- get
- list
Gets an Extended Metadata Schema.
SELECT
name,
jsonSchema,
schemaVersion
FROM google.apphub.extended_metadata_schemas
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND extendedMetadataSchemasId = '{{ extendedMetadataSchemasId }}' -- required
;
Lists Extended Metadata Schemas available in a host project and location.
SELECT
name,
jsonSchema,
schemaVersion
FROM google.apphub.extended_metadata_schemas
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
;