Create Function
CreateFunction registers a new serverless function and creates its initial code commit.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Body
The FunctionsServiceCreateFunctionRequest message.
The commit message describing the initial code submission.
A description of what the function does.
The human-readable name for the function.
The type of function to create, controlling its execution environment and capabilities.
FUNCTION_TYPE_UNSPECIFIED, FUNCTION_TYPE_ANY, FUNCTION_TYPE_CODE_MODE Map of filename to file content for the initial code commit.