Skip to content

doc: gcp copy, rename, move docs #4644

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

Open
wants to merge 1 commit into
base: v1.15
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ An HTTP 204 (No Content) and empty body will be retuned if successful.

### List objects

To perform a list object operation, invoke the S3 binding with a `POST` method and the following JSON body:
To perform a list object operation, invoke the GCP bucket binding with a `POST` method and the following JSON body:

```json
{
Expand Down Expand Up @@ -321,6 +321,58 @@ The list of objects will be returned as JSON array in the following form:
}
]
```

### Copy objects

To perform a copy object operation, invoke the GCP bucket binding with a `POST` method and the following JSON body:

```json
{
"operation": "copy",
"metadata": {
"destinationBucket": "destination-bucket-name",
}
}
```

The metadata parameters are:

- `destinationBucket` - the name of the destination bucket (required)

### Move objects

To perform a move object operation, invoke the GCP bucket binding with a `POST` method and the following JSON body:

```json
{
"operation": "move",
"metadata": {
"destinationBucket": "destination-bucket-name",
}
}
```

The metadata parameters are:

- `destinationBucket` - the name of the destination bucket (required)

### Rename objects

To perform a rename object operation, invoke the GCP bucket binding with a `POST` method and the following JSON body:

```json
{
"operation": "rename",
"metadata": {
"newName": "object-new-name",
}
}
```

The metadata parameters are:

- `newName` - the new name of the object (required)

## Related links

- [Basic schema for a Dapr component]({{< ref component-schema >}})
Expand Down
Loading