GetObjectSignedUrlArgs constructor
const
GetObjectSignedUrlArgs({})
Creates a new GetObjectSignedUrlArgs.
bucket The name of the bucket to read the object from
contentMd5 The MD5 digest value in Base64.
contentType If you specify this in the datasource, the client must provide the Content-Type HTTP header with the same value in its request.
credentials What Google service account credentials json should be used to sign the URL.
duration For how long shall the signed URL be valid (defaults to 1 hour - i.e. 1h).
extensionHeaders As needed. The server checks to make sure that the client provides matching values in requests using the signed URL.
httpMethod What HTTP Method will the signed URL allow (defaults to GET)
path The full path to the object inside the bucket
Implementation
const GetObjectSignedUrlArgs({
required this.bucket,
this.contentMd5,
this.contentType,
this.credentials,
this.duration,
this.extensionHeaders,
this.httpMethod,
required this.path,
});