I think (!?) that this API is not yet exposed through APIs Explorer:
E.g. The following 404s (NOT_FOUND)
API=apkeys
VER=v2alpha1
curl https://www.googleapis.com/discovery/v1/apis/${API}/${VER}/rest
Unfortunately, until it is, (there's no discovery document and) the API Client library is unable to auto-generate the SDK for it.
It's unclear to me whether this is policy or an oversight.
I recommend you pester the Cloud SDK team on Google's Issue Tracker (for Cloud SDK)
Note:
If you append --log-http to (any) gcloud command, it will display the underlying REST calls for the command. Absent a Google-provided SDK for these methods, you could introspect the API and code the REST calls directly:
gcloud alpha services api-keys create ... \
--project=${PROJECT} \
--log-http
Yields:
==== request start ====
uri: https://apikeys.googleapis.com/v2alpha1/projects/${PROJECT}/keys?alt=json
method: POST
== headers start ==
b'accept': b'application/json'
b'authorization': b'Bearer ya29...'
== headers end ==
== body start ==
== body end ==