Skip to content

Commit

Permalink
fix(script): update the API
Browse files Browse the repository at this point in the history
#### script:v1

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/documents.description
- resources.scripts.methods.run.description
- resources.scripts.methods.run.parameters.scriptId.description
- schemas.CreateProjectRequest.description
  • Loading branch information
yoshi-automation authored and sofisl committed Mar 10, 2021
1 parent 462c595 commit f73fca9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions discovery/script-v1.json
Expand Up @@ -18,7 +18,7 @@
"description": "View and manage the provisioning of users on your domain"
},
"https://www.googleapis.com/auth/documents": {
"description": "View and manage your Google Docs documents"
"description": "See, create, and edit all Google Docs documents you have access to"
},
"https://www.googleapis.com/auth/drive": {
"description": "See, edit, create, and delete all of your Google Drive files"
Expand Down Expand Up @@ -847,7 +847,7 @@
"scripts": {
"methods": {
"run": {
"description": "Runs a function in an Apps Script project. The script project must be deployed for use with the Apps Script API and the calling application must share the same Cloud Platform project. This method requires authorization with an OAuth 2.0 token that includes at least one of the scopes listed in the [Authorization](#authorization-scopes) section; script projects that do not require authorization cannot be executed through this API. To find the correct scopes to include in the authentication token, open the project in the script editor, then select **File > Project properties** and click the **Scopes** tab. The error `403, PERMISSION_DENIED: The caller does not have permission` indicates that the Cloud Platform project used to authorize the request is not the same as the one used by the script.",
"description": "Runs a function in an Apps Script project. The script project must be deployed for use with the Apps Script API and the calling application must share the same Cloud Platform project. This method requires authorization with an OAuth 2.0 token that includes at least one of the scopes listed in the [Authorization](#authorization-scopes) section; script projects that do not require authorization cannot be executed through this API. To find the correct scopes to include in the authentication token, open the script project **Overview** page and scroll down to \"Project OAuth Scopes.\" The error `403, PERMISSION_DENIED: The caller does not have permission` indicates that the Cloud Platform project used to authorize the request is not the same as the one used by the script.",
"flatPath": "v1/scripts/{scriptId}:run",
"httpMethod": "POST",
"id": "script.scripts.run",
Expand All @@ -856,7 +856,7 @@
],
"parameters": {
"scriptId": {
"description": "The script ID of the script to be executed. To find the script ID, open the project in the script editor and select **File > Project properties**.",
"description": "The script ID of the script to be executed. Find the script ID on the **Project settings** page under \"IDs.\"",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -887,7 +887,7 @@
}
}
},
"revision": "20200811",
"revision": "20210227",
"rootUrl": "https://script.googleapis.com/",
"schemas": {
"Content": {
Expand All @@ -909,7 +909,7 @@
"type": "object"
},
"CreateProjectRequest": {
"description": "Request to create a script project.",
"description": "Request to create a script project. Request to create a script project.",
"id": "CreateProjectRequest",
"properties": {
"parentId": {
Expand Down
8 changes: 4 additions & 4 deletions src/apis/script/v1.ts
Expand Up @@ -143,7 +143,7 @@ export namespace script_v1 {
scriptId?: string | null;
}
/**
* Request to create a script project.
* Request to create a script project. Request to create a script project.
*/
export interface Schema$CreateProjectRequest {
/**
Expand Down Expand Up @@ -3108,7 +3108,7 @@ export namespace script_v1 {
}

/**
* Runs a function in an Apps Script project. The script project must be deployed for use with the Apps Script API and the calling application must share the same Cloud Platform project. This method requires authorization with an OAuth 2.0 token that includes at least one of the scopes listed in the [Authorization](#authorization-scopes) section; script projects that do not require authorization cannot be executed through this API. To find the correct scopes to include in the authentication token, open the project in the script editor, then select **File \> Project properties** and click the **Scopes** tab. The error `403, PERMISSION_DENIED: The caller does not have permission` indicates that the Cloud Platform project used to authorize the request is not the same as the one used by the script.
* Runs a function in an Apps Script project. The script project must be deployed for use with the Apps Script API and the calling application must share the same Cloud Platform project. This method requires authorization with an OAuth 2.0 token that includes at least one of the scopes listed in the [Authorization](#authorization-scopes) section; script projects that do not require authorization cannot be executed through this API. To find the correct scopes to include in the authentication token, open the script project **Overview** page and scroll down to "Project OAuth Scopes." The error `403, PERMISSION_DENIED: The caller does not have permission` indicates that the Cloud Platform project used to authorize the request is not the same as the one used by the script.
* @example
* ```js
* // Before running the sample:
Expand Down Expand Up @@ -3147,7 +3147,7 @@ export namespace script_v1 {
*
* // Do the magic
* const res = await script.scripts.run({
* // The script ID of the script to be executed. To find the script ID, open the project in the script editor and select **File \> Project properties**.
* // The script ID of the script to be executed. Find the script ID on the **Project settings** page under "IDs."
* scriptId: 'placeholder-value',
*
* // Request body metadata
Expand Down Expand Up @@ -3264,7 +3264,7 @@ export namespace script_v1 {

export interface Params$Resource$Scripts$Run extends StandardParameters {
/**
* The script ID of the script to be executed. To find the script ID, open the project in the script editor and select **File \> Project properties**.
* The script ID of the script to be executed. Find the script ID on the **Project settings** page under "IDs."
*/
scriptId?: string;

Expand Down

0 comments on commit f73fca9

Please sign in to comment.