Method: photo.delete
يؤدي هذا الإجراء إلى حذف Photo
وبياناتها الوصفية.
تعرض هذه الطريقة رموز الخطأ التالية:
طلب HTTP
DELETE https://streetviewpublish.googleapis.com/v1/photo/{photoId}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المَعلمات |
photoId |
string
مطلوبة. رقم تعريف Photo .
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
في حال نجاح هذا الإجراء، يكون نص الاستجابة فارغًا.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/streetviewpublish
لمزيد من المعلومات، راجِع نظرة عامة على بروتوكول OAuth 2.0.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2023-12-01 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2023-12-01 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Permanently deletes a specified Photo and its metadata from Street View Publish."],["Requires authorization with the `https://www.googleapis.com/auth/streetviewpublish` scope."],["Returns an error if the user lacks permission or the photo ID is invalid."],["Uses a DELETE request to the URL `https://streetviewpublish.googleapis.com/v1/photo/{photoId}` with the photo ID as a path parameter."],["The request body should be empty, and a successful deletion results in an empty response body."]]],["This document outlines how to delete a photo and its metadata using a `DELETE` HTTP request. The request is sent to `https://streetviewpublish.googleapis.com/v1/photo/{photoId}`, with the required `photoId` parameter specifying the photo to delete. The request body must be empty. A successful deletion returns an empty response body. The process requires the `https://www.googleapis.com/auth/streetviewpublish` authorization scope. Potential error codes include `PERMISSION_DENIED` and `NOT_FOUND`.\n"]]