upload_object
Transfer files from local storage to a Google Cloud Storage bucket using specified project and bucket details. Automates file uploads with customizable destination names and content types for efficient cloud storage management.
Instructions
Upload a file to a Cloud Storage bucket.
Args:
project_id: The ID of the GCP project
bucket_name: The name of the bucket to upload to
source_file_path: The local file path to upload
destination_blob_name: The name to give the file in GCS (default: filename from source)
content_type: The content type of the file (default: auto-detect)
Returns:
Result of the upload operation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bucket_name | Yes | ||
content_type | No | ||
destination_blob_name | No | ||
project_id | Yes | ||
source_file_path | Yes |
Input Schema (JSON Schema)
{
"properties": {
"bucket_name": {
"title": "Bucket Name",
"type": "string"
},
"content_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Content Type"
},
"destination_blob_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Destination Blob Name"
},
"project_id": {
"title": "Project Id",
"type": "string"
},
"source_file_path": {
"title": "Source File Path",
"type": "string"
}
},
"required": [
"project_id",
"bucket_name",
"source_file_path"
],
"title": "upload_objectArguments",
"type": "object"
}