Method: projects.draft.read
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
प्रोजेक्ट के ड्राफ़्ट का पूरा कॉन्टेंट पढ़ता है.
एचटीटीपी अनुरोध
POST https://actions.googleapis.com/v2/{name=projects/*/draft}:read
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
name |
string
ज़रूरी है. projects/{project}/draft फ़ॉर्मैट में संसाधन का नाम. {project} , प्रोजेक्ट से जुड़ा क्लाउड प्रोजेक्ट आईडी है.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य हिस्से में, यहां दिए गए स्ट्रक्चर का डेटा शामिल होता है:
JSON के काेड में दिखाना |
{
"clientSecretEncryptionKeyVersion": string
} |
फ़ील्ड |
clientSecretEncryptionKeyVersion |
string
ज़रूरी नहीं. खाता लिंक करने वाले OAuth क्लाइंट सीक्रेट को एन्क्रिप्ट करने के लिए इस्तेमाल की गई क्रिप्टो कुंजी का वर्शन. अगर इसके बारे में नहीं बताया गया है, तो कुंजी को एन्क्रिप्ट करने के लिए कुंजी के प्राथमिक वर्शन का इस्तेमाल किया जाता है. यह सिर्फ़ उन प्रोजेक्ट के लिए काम का है जिनके लिए क्लाइंट सीक्रेट की मदद से खाता लिंक किया गया है.
|
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
ड्राफ़्ट.read के लिए RPC जवाब स्ट्रीम किया जा रहा है.
JSON के काेड में दिखाना |
{
"files": {
object (Files )
}
} |
फ़ील्ड |
files |
object (Files )
एक बार में सर्वर से भेजी गई फ़ाइलों की सूची.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThis documentation outlines how to read the entire content of a project draft using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the project name as a path parameter and optionally providing an encryption key version for account linking client secrets.\u003c/p\u003e\n"],["\u003cp\u003eThe response provides a stream of files contained within the project draft.\u003c/p\u003e\n"],["\u003cp\u003eThe content is structured using JSON for both request and response bodies, with detailed descriptions of their respective fields.\u003c/p\u003e\n"]]],[],null,["# Method: projects.draft.read\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ReadDraftResponse.SCHEMA_REPRESENTATION)\n\nReads the entire content of the project draft.\n\n### HTTP request\n\n`POST https://actions.googleapis.com/v2/{name=projects/*/draft}:read`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the resource in the format `projects/{project}/draft`. The `{project}` is the cloud project ID associated with the project. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation ||\n|--------------------------------------------------------|---|\n| ``` { \"clientSecretEncryptionKeyVersion\": string } ``` |\n\n| Fields ||\n|------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `clientSecretEncryptionKeyVersion` | `string` Optional. The version of the crypto key used to encrypt the account linking OAuth client secret. If not specified, the primary key version is used for encryption. Only relevant for projects with account linking with client secret. |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nStreaming RPC response for draft.read.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------|---|\n| ``` { \"files\": { object (/assistant/actions/api/reference/rest/v2/Files) } } ``` |\n\n| Fields ||\n|---------|--------------------------------------------------------------------------------------------------------------------|\n| `files` | `object (`[Files](/assistant/actions/api/reference/rest/v2/Files)`)` List of files sent from the server at a time. |"]]