The Objective:
To enable odoo gmail plugin for my on-prem odoo installtion.
The Problem:
Following this after modifying the login.ts as suggested here
So, when I try to enable gmail plugin by clasp apis enable gmail
I get the following error:
response: { config: { url: 'https://serviceusage.googleapis.com/v1/projects/odoo-gmail-304313/services/gmail.googleapis.com:enable', method: 'POST', userAgentDirectives: [Array], paramsSerializer: [Function (anonymous)], headers: [Object], params: {}, validateStatus: [Function (anonymous)], retry: true, responseType: 'json', retryConfig: [Object] }, data: { error: [Object] }, headers: { 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'cache-control': 'private', connection: 'close', 'content-encoding': 'gzip', 'content-type': 'application/json; charset=UTF-8', date: 'Fri, 10 Mar 2023 11:04:49 GMT', server: 'ESF', 'transfer-encoding': 'chunked', vary: 'Origin, X-Origin, Referer', 'x-content-type-options': 'nosniff', 'x-frame-options': 'SAMEORIGIN', 'x-xss-protection': '0' }, status: 403, statusText: 'Forbidden', request: { responseURL: 'https://serviceusage.googleapis.com/v1/projects/odoo-gmail-304313/services/gmail.googleapis.com:enable' } }, config: { url: 'https://serviceusage.googleapis.com/v1/projects/odoo-gmail-304313/services/gmail.googleapis.com:enable', method: 'POST', userAgentDirectives: [ [Object] ], paramsSerializer: [Function (anonymous)], headers: { 'x-goog-api-client': 'gdcl/5.1.0 gl-node/14.21.3 auth/7.14.1', 'Accept-Encoding': 'gzip', 'User-Agent': 'google-api-nodejs-client/5.1.0 (gzip)', Authorization: 'Bearer REDACTED', Accept: 'application/json' }, params: {}, validateStatus: [Function (anonymous)], retry: true, responseType: 'json', retryConfig: { currentRetryAttempt: 0, retry: 3, httpMethodsToRetry: [Array], noResponseRetries: 2, statusCodesToRetry: [Array] } }, code: 403, errors: [ { message: 'Permission denied to enable service [gmail.googleapis.com]\n' + 'Help Token: REDACTED', domain: 'global', reason: 'forbidden' } ] } API gmail doesn't exist. Try 'clasp apis enable sheets'.
I have enabled Google Apps Script for my Gsuite Account.