GetObjectSignedUrlArgs class
Arguments for getObjectSignedUrl. Arguments for getObjectSignedUrl.
Constructors
-
GetObjectSignedUrlArgs({required Input<
String> bucket, Input<String?> ? contentMd5, Input<String?> ? contentType, Input<String?> ? credentials, Input<String?> ? duration, Input<Map< ? extensionHeaders, Input<String, String> ?>String?> ? httpMethod, required Input<String> path}) -
Creates a new GetObjectSignedUrlArgs.
bucketThe name of the bucket to read the object fromcontentMd5The MD5 digest value in Base64.contentTypeIf you specify this in the datasource, the client must provide theContent-TypeHTTP header with the same value in its request.credentialsWhat Google service account credentials json should be used to sign the URL.durationFor how long shall the signed URL be valid (defaults to 1 hour - i.e.1h).extensionHeadersAs needed. The server checks to make sure that the client provides matching values in requests using the signed URL.httpMethodWhat HTTP Method will the signed URL allow (defaults toGET)pathThe full path to the object inside the bucketconst -
GetObjectSignedUrlArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
bucket
→ Input<
String> -
The name of the bucket to read the object from
final
-
contentMd5
→ Input<
String?> ? -
The MD5 digest value in Base64.
Typically retrieved from
google_storage_bucket_object.object.md5hashattribute. If you provide this in the datasource, the client (e.g. browser, curl) must provide theContent-MD5HTTP header with this same value in its request.final -
contentType
→ Input<
String?> ? -
If you specify this in the datasource, the client must provide the
Content-TypeHTTP header with the same value in its request.final -
credentials
→ Input<
String?> ? -
What Google service account credentials json should be used to sign the URL.
This data source checks the following locations for credentials, in order of preference: data source
credentialsattribute, providercredentialsattribute and finally the GOOGLE_APPLICATION_CREDENTIALS environment variable.final -
duration
→ Input<
String?> ? -
For how long shall the signed URL be valid (defaults to 1 hour - i.e.
1h). See here for info on valid duration formats.final -
extensionHeaders
→ Input<
Map< ?String, String> ?> -
As needed. The server checks to make sure that the client provides matching values in requests using the signed URL.
Any header starting with
x-goog-is accepted but see the Google Docs for list of headers that are supported by Google.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
httpMethod
→ Input<
String?> ? -
What HTTP Method will the signed URL allow (defaults to
GET)final -
path
→ Input<
String> -
The full path to the object inside the bucket
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited