Struct google_pubsub1::api::CloudStorageConfig
source · pub struct CloudStorageConfig {
pub avro_config: Option<AvroConfig>,
pub bucket: Option<String>,
pub filename_prefix: Option<String>,
pub filename_suffix: Option<String>,
pub max_bytes: Option<i64>,
pub max_duration: Option<Duration>,
pub service_account_email: Option<String>,
pub state: Option<String>,
pub text_config: Option<TextConfig>,
}
Expand description
Configuration for a Cloud Storage subscription.
This type is not used in any activity, and only used as part of another schema.
Fields§
§avro_config: Option<AvroConfig>
Optional. If set, message data will be written to Cloud Storage in Avro format.
bucket: Option<String>
Required. 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://”. See the [bucket naming requirements] (https://cloud.google.com/storage/docs/buckets#naming).
filename_prefix: Option<String>
Optional. User-provided prefix for Cloud Storage filename. See the object naming requirements.
filename_suffix: Option<String>
Optional. User-provided suffix for Cloud Storage filename. See the object naming requirements. Must not end in “/”.
max_bytes: Option<i64>
Optional. 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 max_bytes limit may be exceeded in cases where messages are larger than the limit.
max_duration: Option<Duration>
Optional. 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.
service_account_email: Option<String>
Optional. The service account to use to write to Cloud Storage. The subscription creator or updater that specifies this field must have iam.serviceAccounts.actAs
permission on the service account. If not specified, the Pub/Sub service agent, service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
state: Option<String>
Output only. An output-only field that indicates whether or not the subscription can receive messages.
text_config: Option<TextConfig>
Optional. If set, message data will be written to Cloud Storage in text format.
Trait Implementations§
source§impl Clone for CloudStorageConfig
impl Clone for CloudStorageConfig
source§fn clone(&self) -> CloudStorageConfig
fn clone(&self) -> CloudStorageConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more