Writes to a file (inside a Workspace).
HTTP request
POST https://dataform.googleapis.com/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
workspace |
Required. The workspace's name. Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "path": string, "contents": string } |
Fields | |
---|---|
path |
Required. The file. |
contents |
Required. The file's contents. A base64-encoded string. |
Response body
If successful, the response body is empty.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the workspace
resource:
dataform.workspaces.writeFile
For more information, see the IAM documentation.