-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RBS signatures for customizations of s3 (#3013)
- Loading branch information
Showing
5 changed files
with
99 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module Aws | ||
module S3 | ||
class Bucket | ||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#clear!-instance_method | ||
def clear!: () -> void | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#delete!-instance_method | ||
def delete!: (?max_attempts: ::Integer, ?initial_wait: ::Float) -> void | ||
| (?Hash[Symbol, untyped]) -> void | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#url-instance_method | ||
def url: (?virtual_host: boolish, ?secure: boolish) -> String | ||
| (?Hash[Symbol, untyped]) -> String | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#presigned_post-instance_method | ||
def presigned_post: (Hash[Symbol, untyped]) -> untyped | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module Aws | ||
module S3 | ||
class Object | ||
alias size content_length | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#copy_from-instance_method | ||
def copy_from: (untyped source, ?Hash[Symbol, untyped] options) -> void | ||
| ... | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#copy_to-instance_method | ||
def copy_to: (untyped target, ?Hash[Symbol, untyped] options) -> void | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#move_to-instance_method | ||
def move_to: (untyped target, ?Hash[Symbol, untyped] options) -> void | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#presigned_post-instance_method | ||
def presigned_post: (?Hash[Symbol, untyped]) -> untyped | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#presigned_url-instance_method | ||
def presigned_url: (Symbol | String method, ?Hash[Symbol, untyped] params) -> String | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#presigned_request-instance_method | ||
def presigned_request: (Symbol | String method, ?Hash[Symbol, untyped] params) -> [String, Hash[String, String]] | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#public_url-instance_method | ||
def public_url: (?Hash[Symbol, untyped] options) -> String | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#upload_stream-instance_method | ||
def upload_stream: (?Hash[Symbol, untyped] options) { (IO write_stream) -> void } -> bool | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#upload_file-instance_method | ||
def upload_file: (untyped source, ?Hash[Symbol, untyped] options) ?{ (untyped response) -> void } -> bool | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Object.html#download_file-instance_method | ||
def download_file: (String destination, ?Hash[Symbol, untyped] options) -> bool | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module Aws | ||
module S3 | ||
class ObjectSummary | ||
alias content_length size | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#copy_from-instance_method | ||
def copy_from: (untyped source, ?Hash[Symbol, untyped] options) -> void | ||
| ... | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#copy_to-instance_method | ||
def copy_to: (untyped target, ?Hash[Symbol, untyped] options) -> void | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#move_to-instance_method | ||
def move_to: (untyped target, ?Hash[Symbol, untyped] options) -> void | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#presigned_post-instance_method | ||
def presigned_post: (Hash[Symbol, untyped]) -> untyped | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#presigned_url-instance_method | ||
def presigned_url: (Symbol | String method, ?Hash[Symbol, untyped] params) -> String | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#public_url-instance_method | ||
def public_url: (?Hash[Symbol, untyped] options) -> String | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#upload_file-instance_method | ||
def upload_file: (untyped source, ?Hash[Symbol, untyped] options) ?{ (untyped response) -> void } -> bool | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#upload_stream-instance_method | ||
def upload_stream: (?Hash[Symbol, untyped] options) { (IO write_stream) -> void } -> bool | ||
|
||
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/ObjectSummary.html#download_file-instance_method | ||
def download_file: (String destination, ?Hash[Symbol, untyped] options) -> bool | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters