GetObjectSignedUrlPlainArgs

data class GetObjectSignedUrlPlainArgs(val bucket: String, val contentMd5: String? = null, val contentType: String? = null, val credentials: String? = null, val duration: String? = null, val extensionHeaders: Map<String, String>? = null, val httpMethod: String? = null, val path: String) : ConvertibleToJava<GetObjectSignedUrlPlainArgs>

A collection of arguments for invoking getObjectSignedUrl.

Constructors

Link copied to clipboard
constructor(bucket: String, contentMd5: String? = null, contentType: String? = null, credentials: String? = null, duration: String? = null, extensionHeaders: Map<String, String>? = null, httpMethod: String? = null, path: String)

Properties

Link copied to clipboard

The name of the bucket to read the object from

Link copied to clipboard
val contentMd5: String? = null

The MD5 digest value in Base64. Typically retrieved from google_storage_bucket_object.object.md5hash attribute. If you provide this in the datasource, the client (e.g. browser, curl) must provide the Content-MD5 HTTP header with this same value in its request.

Link copied to clipboard
val contentType: String? = null

If you specify this in the datasource, the client must provide the Content-Type HTTP header with the same value in its request.

Link copied to clipboard
val credentials: String? = null

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 credentials attribute, provider credentials attribute and finally the GOOGLE_APPLICATION_CREDENTIALS environment variable.

Link copied to clipboard
val duration: String? = null

For how long shall the signed URL be valid (defaults to 1 hour - i.e. 1h). See here for info on valid duration formats.

Link copied to clipboard

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.

Link copied to clipboard
val httpMethod: String? = null

What HTTP Method will the signed URL allow (defaults to GET)

Link copied to clipboard

The full path to the object inside the bucket

Functions

Link copied to clipboard
open override fun toJava(): GetObjectSignedUrlPlainArgs