Method: sampleProjects.list
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Elenca tutti i progetti di esempio supportati dall'interfaccia a riga di comando gactions.
Richiesta HTTP
GET https://actions.googleapis.com/v2/sampleProjects
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri di query
Parametri |
pageSize |
integer
(Facoltativo) Il numero massimo di progetti di esempio da restituire. Il servizio potrebbe restituire un valore inferiore a questo valore. Se non specificato, verranno restituiti al massimo 1000 progetti di esempio. I valori superiori a 1000 verranno forzati a 1000.
|
pageToken |
string
(Facoltativo) Un token di pagina, ricevuto da un campo "sampleProjects.list" precedente chiamata. Forniscilo per recuperare la pagina successiva.
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene dati con la seguente struttura:
Risposta RPC per sampleProjects.list.
Rappresentazione JSON |
{
"sampleProjects": [
{
object (SampleProject )
}
],
"nextPageToken": string
} |
Campi |
sampleProjects[] |
object (SampleProject )
L'elenco dei progetti di esempio supportati.
|
nextPageToken |
string
Un token, che può essere inviato come pageToken per recuperare la pagina successiva. Se questo campo viene omesso, non verranno visualizzate altre pagine.
|
SampleProject
Definizione di una risorsa di progetto di esempio.
Rappresentazione JSON |
{
"name": string,
"hostedUrl": string,
"description": string
} |
Campi |
name |
string
Il nome del progetto di esempio. Formato: sampleProjects/{sample_project}
|
hostedUrl |
string
L'URL del file ZIP in cui è ospitato l'esempio.
|
description |
string
La descrizione del progetto di esempio.
|
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]