Method: sampleProjects.list
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह उन सभी सैंपल प्रोजेक्ट की सूची बनाता है जो सीएलआई के साथ काम करते हैं.
एचटीटीपी अनुरोध
GET https://actions.googleapis.com/v2/sampleProjects
यह यूआरएल gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
क्वेरी पैरामीटर
पैरामीटर |
pageSize |
integer
ज़रूरी नहीं. लौटाए जाने वाले सैंपल प्रोजेक्ट की ज़्यादा से ज़्यादा संख्या. सेवा इस वैल्यू से कम वैल्यू दिखा सकती है. अगर जानकारी नहीं दी जाती, तो ज़्यादा से ज़्यादा 1,000 सैंपल प्रोजेक्ट लौटाए जाएंगे. अगर वैल्यू 1,000 से ज़्यादा है, तो उसे 1,000 बना दिया जाएगा.
|
pageToken |
string
ज़रूरी नहीं. पिछली 'sampleProjects.list' से मिला पेज टोकन कॉल. अगले पेज को वापस पाने के लिए, यह जानकारी दें.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
sampleProjects.list के लिए RPC जवाब.
JSON के काेड में दिखाना |
{
"sampleProjects": [
{
object (SampleProject )
}
],
"nextPageToken": string
} |
फ़ील्ड |
sampleProjects[] |
object (SampleProject )
इस्तेमाल किए जा सकने वाले सैंपल प्रोजेक्ट की सूची.
|
nextPageToken |
string
एक टोकन, जिसे अगला पेज फिर से पाने के लिए pageToken के तौर पर भेजा जा सकता है. अगर इस फ़ील्ड को हटा दिया जाता है, तो इसके बाद कोई पेज नहीं होता.
|
SampleProject
प्रोजेक्ट के सैंपल संसाधन की परिभाषा.
JSON के काेड में दिखाना |
{
"name": string,
"hostedUrl": string,
"description": string
} |
फ़ील्ड |
name |
string
सैंपल प्रोजेक्ट का नाम. फ़ॉर्मैट: sampleProjects/{sample_project}
|
hostedUrl |
string
ज़िप फ़ाइल का यूआरएल जहां सैंपल होस्ट किया गया है.
|
description |
string
सैंपल प्रोजेक्ट का ब्यौरा.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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 document outlines the API for listing sample projects supported by the gactions CLI, using a GET request to the specified endpoint.\u003c/p\u003e\n"],["\u003cp\u003eUsers can paginate results by specifying \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e query parameters for managing result sets.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of \u003ccode\u003esampleProjects\u003c/code\u003e, each containing a name, hosted URL for the project zip file, and a description.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSampleProjects\u003c/code\u003e are identified by a unique name in the format \u003ccode\u003esampleProjects/{sample_project}\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: sampleProjects.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListSampleProjectsResponse.SCHEMA_REPRESENTATION)\n- [SampleProject](#SampleProject)\n - [JSON representation](#SampleProject.SCHEMA_REPRESENTATION)\n\nLists all the sample projects supported by the gactions CLI.\n\n### HTTP request\n\n`GET https://actions.googleapis.com/v2/sampleProjects`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Optional. The maximum number of sample projects to return. The service may return fewer than this value. If unspecified, at most 1000 sample projects will be returned. Values above 1000 will be coerced to 1000. |\n| `pageToken` | `string` Optional. A page token, received from a previous 'sampleProjects.list' call. Provide this to retrieve the subsequent page. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\nRPC response for sampleProjects.list.\n\n| JSON representation ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"sampleProjects\": [ { object (/assistant/actions/api/reference/rest/v2/sampleProjects/list#SampleProject) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| `sampleProjects[]` | `object (`[SampleProject](/assistant/actions/api/reference/rest/v2/sampleProjects/list#SampleProject)`)` The list of sample projects supported. |\n| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |\n\nSampleProject\n-------------\n\nDefinition of sample project resource.\n\n| JSON representation ||\n|------------------------------------------------------------------------|---|\n| ``` { \"name\": string, \"hostedUrl\": string, \"description\": string } ``` |\n\n| Fields ||\n|---------------|------------------------------------------------------------------------------------|\n| `name` | `string` The name of the sample project. Format: `sampleProjects/{sample_project}` |\n| `hostedUrl` | `string` The URL to the zip file where the sample is hosted. |\n| `description` | `string` The description of the sample project. |"]]