Skip to content
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

feat: add ContentLength for oss Putobject #821

Merged
merged 8 commits into from
Oct 26, 2022
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions components/oss/oss.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ type PutObjectInput struct {
Meta map[string]string `json:"meta,omitempty"`
Tagging map[string]string `json:"tagging,omitempty"`
StorageClass string `json:"storage_class,omitempty"`
ContentLength int64 `json:"content_length,omitempty"`
}

type PutObjectOutput struct {
Expand Down
8 changes: 8 additions & 0 deletions docs/api/v1/s3.html
Original file line number Diff line number Diff line change
Expand Up @@ -4841,6 +4841,14 @@ <h3 id="spec.proto.extension.v1.s3.PutObjectInput">PutObjectInput</h3>
<td><p>Storage class options. </p></td>
</tr>

<tr>
<td>content_length</td>
<td><a href="#int64">int64</a></td>
<td></td>
<td><p>Size of the body in bytes. This parameter is useful when the size of the body
cannot be determined automatically </p></td>
</tr>

</tbody>
</table>

Expand Down
4 changes: 2 additions & 2 deletions spec/proto/extension/v1/cryption/cryption.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions spec/proto/extension/v1/cryption/cryption_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions spec/proto/extension/v1/delay_queue/delay_queue.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions spec/proto/extension/v1/delay_queue/delay_queue_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions spec/proto/extension/v1/email/email.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions spec/proto/extension/v1/email/email_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions spec/proto/extension/v1/phone/phone.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions spec/proto/extension/v1/phone/phone_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2,434 changes: 1,223 additions & 1,211 deletions spec/proto/extension/v1/s3/oss.pb.go

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions spec/proto/extension/v1/s3/oss.proto
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ message PutObjectInput{
map<string, string> tagging = 14;
// Storage class options.
string storage_class = 15;
// Size of the body in bytes. This parameter is useful when the size of the body
// cannot be determined automatically
int64 content_length = 16;
}

// PutObjectOutput
Expand Down
4 changes: 2 additions & 2 deletions spec/proto/extension/v1/sms/sms.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions spec/proto/extension/v1/sms/sms_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spec/proto/runtime/v1/appcallback.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spec/proto/runtime/v1/lifecycle.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spec/proto/runtime/v1/runtime.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.