Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Photo

import type { Photo } from "https://googleapis.deno.dev/v1/streetviewpublish:v1.ts";

Photo is used to store 360 photos along with photo metadata.

interface Photo {
captureTime?: Date;
connections?: Connection[];
readonly downloadUrl?: string;
readonly mapsPublishStatus?: "UNSPECIFIED_MAPS_PUBLISH_STATUS" | "PUBLISHED" | "REJECTED_UNKNOWN";
readonly photoId?: PhotoId;
places?: Place[];
pose?: Pose;
readonly shareLink?: string;
readonly thumbnailUrl?: string;
readonly transferStatus?:
| "TRANSFER_STATUS_UNKNOWN"
| "NEVER_TRANSFERRED"
| "PENDING"
| "COMPLETED"
| "REJECTED"
| "EXPIRED"
| "CANCELLED"
| "RECEIVED_VIA_TRANSFER";
uploadReference?: UploadRef;
readonly uploadTime?: Date;
readonly viewCount?: bigint;
}

§Properties

§
captureTime?: Date
[src]

Optional. Absolute time when the photo was captured. When the photo has no exif timestamp, this is used to set a timestamp in the photo metadata.

§
connections?: Connection[]
[src]

Optional. Connections to other photos. A connection represents the link from this photo to another photo.

§
readonly downloadUrl?: string
[src]

Output only. The download URL for the photo bytes. This field is set only when GetPhotoRequest.view is set to PhotoView.INCLUDE_DOWNLOAD_URL.

§
readonly mapsPublishStatus?: "UNSPECIFIED_MAPS_PUBLISH_STATUS" | "PUBLISHED" | "REJECTED_UNKNOWN"
[src]

Output only. Status in Google Maps, whether this photo was published or rejected.

§
readonly photoId?: PhotoId
[src]

Required. Output only. Required when updating a photo. Output only when creating a photo. Identifier for the photo, which is unique among all photos in Google.

§
places?: Place[]
[src]

Optional. Places where this photo belongs.

§
pose?: Pose
[src]

Optional. Pose of the photo.

§
readonly thumbnailUrl?: string
[src]

Output only. The thumbnail URL for showing a preview of the given photo.

§
readonly transferStatus?: "TRANSFER_STATUS_UNKNOWN" | "NEVER_TRANSFERRED" | "PENDING" | "COMPLETED" | "REJECTED" | "EXPIRED" | "CANCELLED" | "RECEIVED_VIA_TRANSFER"
[src]

Output only. Status of rights transfer on this photo.

§
uploadReference?: UploadRef
[src]

Input only. Required when creating a photo. Input only. The resource URL where the photo bytes are uploaded to.

§
readonly uploadTime?: Date
[src]

Output only. Time when the image was uploaded.

§
readonly viewCount?: bigint
[src]

Output only. View count of the photo.