Index: discovery/googleapis/streetviewpublish__v1.json |
diff --git a/discovery/googleapis/streetviewpublish__v1.json b/discovery/googleapis/streetviewpublish__v1.json |
index fe551b6bf1c372c0ff923254d794d4dd490275e9..0822d8399312f43259a6c9a254af1f0578e4ba96 100644 |
--- a/discovery/googleapis/streetviewpublish__v1.json |
+++ b/discovery/googleapis/streetviewpublish__v1.json |
@@ -12,7 +12,7 @@ |
"baseUrl": "https://streetviewpublish.googleapis.com/", |
"batchPath": "batch", |
"canonicalName": "Street View Publish", |
- "description": "The Street View Publish API allows your application to publish 360 photos to Google Maps, along with image metadata that specifies the position, orientation, and connectivity of each photo. With this API, any app can offer an interface for positioning, connecting, and uploading user-generated Street View images.\n", |
+ "description": "Publishes 360 photos to Google Maps, along with position, orientation, and connectivity metadata. Apps can offer an interface for positioning, connecting, and uploading user-generated Street View images.\n", |
"discoveryVersion": "v1", |
"documentationLink": "https://developers.google.com/streetview/publish/", |
"icons": { |
@@ -25,16 +25,53 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "oauth_token": { |
- "description": "OAuth 2.0 token for the current user.", |
+ "alt": { |
+ "default": "json", |
+ "description": "Data format for response.", |
+ "enum": [ |
+ "json", |
+ "media", |
+ "proto" |
+ ], |
+ "enumDescriptions": [ |
+ "Responses with Content-Type of application/json", |
+ "Media download with context-dependent Content-Type", |
+ "Responses with Content-Type of application/x-protobuf" |
+ ], |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "access_token": { |
+ "description": "OAuth access token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "key": { |
+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "quotaUser": { |
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
"location": "query", |
"type": "string" |
}, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
"bearer_token": { |
"description": "OAuth bearer token.", |
"location": "query", |
"type": "string" |
}, |
+ "oauth_token": { |
+ "description": "OAuth 2.0 token for the current user.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"upload_protocol": { |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
"location": "query", |
@@ -56,11 +93,6 @@ |
"location": "query", |
"type": "string" |
}, |
- "callback": { |
- "description": "JSONP", |
- "location": "query", |
- "type": "string" |
- }, |
"$.xgafv": { |
"description": "V1 error format.", |
"enum": [ |
@@ -74,42 +106,10 @@ |
"location": "query", |
"type": "string" |
}, |
- "alt": { |
- "default": "json", |
- "description": "Data format for response.", |
- "enum": [ |
- "json", |
- "media", |
- "proto" |
- ], |
- "enumDescriptions": [ |
- "Responses with Content-Type of application/json", |
- "Media download with context-dependent Content-Type", |
- "Responses with Content-Type of application/x-protobuf" |
- ], |
- "location": "query", |
- "type": "string" |
- }, |
- "key": { |
- "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
- "location": "query", |
- "type": "string" |
- }, |
- "access_token": { |
- "description": "OAuth access token.", |
- "location": "query", |
- "type": "string" |
- }, |
- "quotaUser": { |
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
+ "callback": { |
+ "description": "JSONP", |
"location": "query", |
"type": "string" |
- }, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "location": "query", |
- "type": "boolean" |
} |
}, |
"protocol": "rest", |
@@ -140,7 +140,9 @@ |
"parameterOrder": [], |
"parameters": {}, |
"path": "v1/photos:batchUpdate", |
- "request": {}, |
+ "request": { |
+ "$ref": "BatchUpdatePhotosRequest" |
+ }, |
"response": { |
"$ref": "BatchUpdatePhotosResponse" |
}, |
@@ -184,11 +186,6 @@ |
"id": "streetviewpublish.photos.list", |
"parameterOrder": [], |
"parameters": { |
- "filter": { |
- "description": "The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.", |
- "location": "query", |
- "type": "string" |
- }, |
"pageToken": { |
"description": "The\nnextPageToken\nvalue returned from a previous\nListPhotos\nrequest, if any.", |
"location": "query", |
@@ -208,6 +205,11 @@ |
], |
"location": "query", |
"type": "string" |
+ }, |
+ "filter": { |
+ "description": "The filter expression. For example: `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"path": "v1/photos", |
@@ -346,104 +348,9 @@ |
} |
} |
}, |
- "revision": "20170630", |
+ "revision": "20170722", |
"rootUrl": "https://streetviewpublish.googleapis.com/", |
"schemas": { |
- "Photo": { |
- "description": "Photo is used to store 360 photos along with photo metadata.", |
- "id": "Photo", |
- "properties": { |
- "thumbnailUrl": { |
- "description": "Output only. The thumbnail URL for showing a preview of the given photo.", |
- "type": "string" |
- }, |
- "captureTime": { |
- "description": "Absolute time when the photo was captured.\nWhen the photo has no exif timestamp, this is used to set a timestamp in\nthe photo metadata.", |
- "format": "google-datetime", |
- "type": "string" |
- }, |
- "viewCount": { |
- "description": "Output only. View count of the photo.", |
- "format": "int64", |
- "type": "string" |
- }, |
- "downloadUrl": { |
- "description": "Output only. The download URL for the photo bytes. This field is set only\nwhen\nGetPhotoRequest.view\nis set to\nPhotoView.INCLUDE_DOWNLOAD_URL.", |
- "type": "string" |
- }, |
- "connections": { |
- "description": "Connections to other photos. A connection represents the link from this\nphoto to another photo.", |
- "items": { |
- "$ref": "Connection" |
- }, |
- "type": "array" |
- }, |
- "places": { |
- "description": "Places where this photo belongs.", |
- "items": { |
- "$ref": "Place" |
- }, |
- "type": "array" |
- }, |
- "pose": { |
- "$ref": "Pose", |
- "description": "Pose of the photo." |
- }, |
- "photoId": { |
- "$ref": "PhotoId", |
- "description": "Required when updating photo. Output only when creating photo.\nIdentifier for the photo, which is unique among all photos in\nGoogle." |
- }, |
- "uploadReference": { |
- "$ref": "UploadRef", |
- "description": "Required when creating photo. Input only. The resource URL where the photo\nbytes are uploaded to." |
- }, |
- "shareLink": { |
- "description": "Output only. The share link for the photo.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "PhotoResponse": { |
- "description": "Response payload for a single\nPhoto\nin batch operations including\nBatchGetPhotos\nand\nBatchUpdatePhotos.", |
- "id": "PhotoResponse", |
- "properties": { |
- "status": { |
- "$ref": "Status", |
- "description": "The status for the operation to get or update a single photo in the batch\nrequest." |
- }, |
- "photo": { |
- "$ref": "Photo", |
- "description": "The Photo resource, if the request\nwas successful." |
- } |
- }, |
- "type": "object" |
- }, |
- "Connection": { |
- "description": "A connection is the link from a source photo to a destination photo.", |
- "id": "Connection", |
- "properties": { |
- "target": { |
- "$ref": "PhotoId", |
- "description": "Required. The destination of the connection from the containing photo to\nanother photo." |
- } |
- }, |
- "type": "object" |
- }, |
- "BatchUpdatePhotosResponse": { |
- "description": "Response to batch update of metadata of one or more\nPhotos.", |
- "id": "BatchUpdatePhotosResponse", |
- "properties": { |
- "results": { |
- "description": "List of results for each individual\nPhoto updated, in the same order as\nthe request.", |
- "items": { |
- "$ref": "PhotoResponse" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
"BatchDeletePhotosResponse": { |
"description": "Response to batch delete of one or more\nPhotos.", |
"id": "BatchDeletePhotosResponse", |
@@ -467,7 +374,7 @@ |
"type": "string" |
}, |
"details": { |
- "description": "A list of messages that carry the error details. There will be a\ncommon set of message types for APIs to use.", |
+ "description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.", |
"items": { |
"additionalProperties": { |
"description": "Properties of the object. Contains field @type with type URL.", |
@@ -543,6 +450,23 @@ |
}, |
"type": "object" |
}, |
+ "LatLng": { |
+ "description": "An object representing a latitude/longitude pair. This is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n\n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees longitude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n return r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], respectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 360, NormalizeLongitude(longitude)\n else:\n return 180 - r, NormalizeLongitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLongitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)", |
+ "id": "LatLng", |
+ "properties": { |
+ "longitude": { |
+ "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", |
+ "format": "double", |
+ "type": "number" |
+ }, |
+ "latitude": { |
+ "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].", |
+ "format": "double", |
+ "type": "number" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
"BatchDeletePhotosRequest": { |
"description": "Request to delete multiple Photos.", |
"id": "BatchDeletePhotosRequest", |
@@ -557,19 +481,29 @@ |
}, |
"type": "object" |
}, |
- "LatLng": { |
- "description": "An object representing a latitude/longitude pair. This is expressed as a pair\nof doubles representing degrees latitude and degrees longitude. Unless\nspecified otherwise, this must conform to the\n<a href=\"http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf\">WGS84\nstandard</a>. Values must be within normalized ranges.\n\nExample of normalization code in Python:\n\n def NormalizeLongitude(longitude):\n \"\"\"Wraps decimal degrees longitude to [-180.0, 180.0].\"\"\"\n q, r = divmod(longitude, 360.0)\n if r > 180.0 or (r == 180.0 and q <= -1.0):\n return r - 360.0\n return r\n\n def NormalizeLatLng(latitude, longitude):\n \"\"\"Wraps decimal degrees latitude and longitude to\n [-90.0, 90.0] and [-180.0, 180.0], respectively.\"\"\"\n r = latitude % 360.0\n if r <= 90.0:\n return r, NormalizeLongitude(longitude)\n elif r >= 270.0:\n return r - 360, NormalizeLongitude(longitude)\n else:\n return 180 - r, NormalizeLongitude(longitude + 180.0)\n\n assert 180.0 == NormalizeLongitude(180.0)\n assert -180.0 == NormalizeLongitude(-180.0)\n assert -179.0 == NormalizeLongitude(181.0)\n assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)\n assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)\n assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)\n assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)\n assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)\n assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)\n assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)\n assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)\n assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)", |
- "id": "LatLng", |
+ "UpdatePhotoRequest": { |
+ "description": "Request to update the metadata of a\nPhoto. Updating the pixels of a photo\nis not supported.", |
+ "id": "UpdatePhotoRequest", |
"properties": { |
- "longitude": { |
- "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", |
- "format": "double", |
- "type": "number" |
+ "updateMask": { |
+ "description": "Mask that identifies fields on the photo metadata to update.\nIf not present, the old Photo metadata will be entirely replaced with the\nnew Photo metadata in this request. The update fails if invalid fields are\nspecified. Multiple fields can be specified in a comma-delimited list.\n\nThe following fields are valid:\n\n* `pose.heading`\n* `pose.latlngpair`\n* `pose.pitch`\n* `pose.roll`\n* `pose.level`\n* `pose.altitude`\n* `connections`\n* `places`\n\n\n<aside class=\"note\"><b>Note:</b> Repeated fields in\nupdateMask\nmean the entire set of repeated values will be replaced with the new\ncontents. For example, if\nupdateMask\ncontains `connections` and\ngoogle.streetview.publish.v1.UpdatePhotoRequest.photo.connections is\nempty, all connections will be removed.</aside>", |
+ "format": "google-fieldmask", |
+ "type": "string" |
}, |
- "latitude": { |
- "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].", |
- "format": "double", |
- "type": "number" |
+ "photo": { |
+ "$ref": "Photo", |
+ "description": "Required. Photo object containing the\nnew metadata. Only the fields specified in\nupdateMask\nfield are used. If `updateMask` is not present, the update applies to all\nfields. <aside class=\"note\"><b>Note:</b> To update\nPose.altitude,\nPose.latLngPair has to be\nfilled as well. Otherwise, the request will fail." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "PhotoId": { |
+ "description": "Identifier for a Photo.", |
+ "id": "PhotoId", |
+ "properties": { |
+ "id": { |
+ "description": "Required. A base64 encoded identifier.", |
+ "type": "string" |
} |
}, |
"type": "object" |
@@ -578,20 +512,6 @@ |
"description": "Raw pose measurement for an entity.", |
"id": "Pose", |
"properties": { |
- "pitch": { |
- "description": "Pitch, measured at the center of the photo in degrees. Value must be >=-90\nand <= 90. A value of -90 means looking directly down, and a value of 90\nmeans looking directly up.\nNaN indicates an unmeasured quantity.", |
- "format": "double", |
- "type": "number" |
- }, |
- "latLngPair": { |
- "$ref": "LatLng", |
- "description": "Latitude and longitude pair of the pose, as explained here:\nhttps://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng\nWhen creating a Photo, if the\nlatitude and longitude pair are not provided here, the geolocation from the\nexif header will be used. If the latitude and longitude pair is not\nprovided and cannot be found in the exif header, the create photo process\nwill fail." |
- }, |
- "roll": { |
- "description": "Roll, measured in degrees. Value must be >= 0 and <360. A value of 0\nmeans level with the horizon.\nNaN indicates an unmeasured quantity.", |
- "format": "double", |
- "type": "number" |
- }, |
"level": { |
"$ref": "Level", |
"description": "Level (the floor in a building) used to configure vertical navigation." |
@@ -605,17 +525,34 @@ |
"description": "Altitude of the pose in meters above ground level (as defined by WGS84).\nNaN indicates an unmeasured quantity.", |
"format": "double", |
"type": "number" |
+ }, |
+ "pitch": { |
+ "description": "Pitch, measured at the center of the photo in degrees. Value must be >=-90\nand <= 90. A value of -90 means looking directly down, and a value of 90\nmeans looking directly up.\nNaN indicates an unmeasured quantity.", |
+ "format": "double", |
+ "type": "number" |
+ }, |
+ "latLngPair": { |
+ "$ref": "LatLng", |
+ "description": "Latitude and longitude pair of the pose, as explained here:\nhttps://cloud.google.com/datastore/docs/reference/rest/Shared.Types/LatLng\nWhen creating a Photo, if the\nlatitude and longitude pair are not provided here, the geolocation from the\nexif header will be used. If the latitude and longitude pair is not\nprovided and cannot be found in the exif header, the create photo process\nwill fail." |
+ }, |
+ "roll": { |
+ "description": "Roll, measured in degrees. Value must be >= 0 and <360. A value of 0\nmeans level with the horizon.\nNaN indicates an unmeasured quantity.", |
+ "format": "double", |
+ "type": "number" |
} |
}, |
"type": "object" |
}, |
- "PhotoId": { |
- "description": "Identifier for a Photo.", |
- "id": "PhotoId", |
+ "BatchUpdatePhotosRequest": { |
+ "description": "Request to update the metadata of photos.\nUpdating the pixels of photos is not supported.", |
+ "id": "BatchUpdatePhotosRequest", |
"properties": { |
- "id": { |
- "description": "Required. A base64 encoded identifier.", |
- "type": "string" |
+ "updatePhotoRequests": { |
+ "description": "Required. List of\nUpdatePhotoRequests.", |
+ "items": { |
+ "$ref": "UpdatePhotoRequest" |
+ }, |
+ "type": "array" |
} |
}, |
"type": "object" |
@@ -637,6 +574,101 @@ |
} |
}, |
"type": "object" |
+ }, |
+ "Photo": { |
+ "description": "Photo is used to store 360 photos along with photo metadata.", |
+ "id": "Photo", |
+ "properties": { |
+ "captureTime": { |
+ "description": "Absolute time when the photo was captured.\nWhen the photo has no exif timestamp, this is used to set a timestamp in\nthe photo metadata.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "thumbnailUrl": { |
+ "description": "Output only. The thumbnail URL for showing a preview of the given photo.", |
+ "type": "string" |
+ }, |
+ "viewCount": { |
+ "description": "Output only. View count of the photo.", |
+ "format": "int64", |
+ "type": "string" |
+ }, |
+ "downloadUrl": { |
+ "description": "Output only. The download URL for the photo bytes. This field is set only\nwhen\nGetPhotoRequest.view\nis set to\nPhotoView.INCLUDE_DOWNLOAD_URL.", |
+ "type": "string" |
+ }, |
+ "places": { |
+ "description": "Places where this photo belongs.", |
+ "items": { |
+ "$ref": "Place" |
+ }, |
+ "type": "array" |
+ }, |
+ "connections": { |
+ "description": "Connections to other photos. A connection represents the link from this\nphoto to another photo.", |
+ "items": { |
+ "$ref": "Connection" |
+ }, |
+ "type": "array" |
+ }, |
+ "pose": { |
+ "$ref": "Pose", |
+ "description": "Pose of the photo." |
+ }, |
+ "photoId": { |
+ "$ref": "PhotoId", |
+ "description": "Required when updating photo. Output only when creating photo.\nIdentifier for the photo, which is unique among all photos in\nGoogle." |
+ }, |
+ "uploadReference": { |
+ "$ref": "UploadRef", |
+ "description": "Required when creating photo. Input only. The resource URL where the photo\nbytes are uploaded to." |
+ }, |
+ "shareLink": { |
+ "description": "Output only. The share link for the photo.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "PhotoResponse": { |
+ "description": "Response payload for a single\nPhoto\nin batch operations including\nBatchGetPhotos\nand\nBatchUpdatePhotos.", |
+ "id": "PhotoResponse", |
+ "properties": { |
+ "photo": { |
+ "$ref": "Photo", |
+ "description": "The Photo resource, if the request\nwas successful." |
+ }, |
+ "status": { |
+ "$ref": "Status", |
+ "description": "The status for the operation to get or update a single photo in the batch\nrequest." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Connection": { |
+ "description": "A connection is the link from a source photo to a destination photo.", |
+ "id": "Connection", |
+ "properties": { |
+ "target": { |
+ "$ref": "PhotoId", |
+ "description": "Required. The destination of the connection from the containing photo to\nanother photo." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "BatchUpdatePhotosResponse": { |
+ "description": "Response to batch update of metadata of one or more\nPhotos.", |
+ "id": "BatchUpdatePhotosResponse", |
+ "properties": { |
+ "results": { |
+ "description": "List of results for each individual\nPhoto updated, in the same order as\nthe request.", |
+ "items": { |
+ "$ref": "PhotoResponse" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
} |
}, |
"servicePath": "", |