-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect display name of available "Advanced Service" APIs #512
Comments
Thanks for issue report. There seems to be two distinct issues here caused by some faulty assumptions:
I think we could fix the first problem by including an optional field Fixing the second problem could probably be done by adding a @grant - Does that sound reasonable? |
Sounds reasonable. Note that Would an interface like this solve the issues?
|
Would all of those still require that the API is already included in the |
Expected Behavior
When using
clasp apis list
, the displayed<api name>
is what can be passed inclasp apis enable/disable <api name>
Actual Behavior
Services with names that have "-" (e.g.

bigquery-json
) or specialized "Advanced Services" bindings (AdminDirectory
,AdminReports
) are not properly reported byapis list
:If attempting to then enable the API by displayed name, e.g.
clasp apis enable bigquery
, HTTP 403 "The caller does not have permission" is raised, and clasp then states:Steps to Reproduce the Problem
clasp apis list
admin
twice (forAdminDirectory
&AdminReports
)bigquery
clasp apis enable bigquery
Specifications
node -v
): 8.11.2clasp -v
): 2.0.1The text was updated successfully, but these errors were encountered: