GetSubscriptionCloudStorageConfig

data class GetSubscriptionCloudStorageConfig(val avroConfigs: List<GetSubscriptionCloudStorageConfigAvroConfig>, val bucket: String, val filenameDatetimeFormat: String, val filenamePrefix: String, val filenameSuffix: String, val maxBytes: Int, val maxDuration: String, val maxMessages: Int, val serviceAccountEmail: String, val state: String)

Constructors

Link copied to clipboard
constructor(avroConfigs: List<GetSubscriptionCloudStorageConfigAvroConfig>, bucket: String, filenameDatetimeFormat: String, filenamePrefix: String, filenameSuffix: String, maxBytes: Int, maxDuration: String, maxMessages: Int, serviceAccountEmail: String, state: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If set, message data will be written to Cloud Storage in Avro format.

Link copied to clipboard

User-provided name for the Cloud Storage bucket. The bucket must be created by the user. The bucket name must be without any prefix like "gs://".

Link copied to clipboard

User-provided format string specifying how to represent datetimes in Cloud Storage filenames.

Link copied to clipboard

User-provided prefix for Cloud Storage filename.

Link copied to clipboard

User-provided suffix for Cloud Storage filename. Must not end in "/".

Link copied to clipboard

The maximum bytes that can be written to a Cloud Storage file before a new file is created. Min 1 KB, max 10 GiB. The maxBytes limit may be exceeded in cases where messages are larger than the limit.

Link copied to clipboard

The maximum duration that can elapse before a new Cloud Storage file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed the subscription's acknowledgement deadline. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".

Link copied to clipboard

The maximum messages that can be written to a Cloud Storage file before a new file is created. Min 1000 messages.

Link copied to clipboard

The service account to use to write to Cloud Storage. If not specified, the Pub/Sub service agent, service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.

Link copied to clipboard

An output-only field that indicates whether or not the subscription can receive messages.