Skip to main content

annotations

Creates, updates, deletes, gets or lists an annotations resource.

Overview

Nameannotations
TypeResource
Idgoogle.rapidmigrationassessment.annotations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringname of resource.
createTimestring (google-datetime)Output only. Create time stamp.
labelsobjectLabels as key value pairs.
typestringType of an annotation.
updateTimestring (google-datetime)Output only. Update time stamp.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, annotationsIdGets details of a single Annotation.
createinsertprojectsId, locationsIdrequestIdCreates an Annotation

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.

NameDatatypeDescription
annotationsIdstring
locationsIdstring
projectsIdstring
requestIdstring

SELECT examples

Gets details of a single Annotation.

SELECT
name,
createTime,
labels,
type,
updateTime
FROM google.rapidmigrationassessment.annotations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND annotationsId = '{{ annotationsId }}' -- required;

INSERT examples

Creates an Annotation

INSERT INTO google.rapidmigrationassessment.annotations (
data__name,
data__labels,
data__type,
projectsId,
locationsId,
requestId
)
SELECT
'{{ name }}',
'{{ labels }}',
'{{ type }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;