pub struct BucketPlan {
pub name: String,
pub region: Option<String>,
pub path: Option<String>,
pub hmac_access_key: Option<String>,
pub hmac_secret: Option<String>,
}Fields§
§name: StringThis is the name of the bucket.
region: Option<String>This is the region of the bucket. Usage: - If credential.type is aws, then this is required. - If credential.type is gcp, then this is optional since GCP allows buckets to be accessed without a region but region is required for data residency requirements. Read here: https://cloud.google.com/storage/docs/request-endpoints This overrides the credential.region field if it is provided.
path: Option<String>This is the path where call artifacts will be stored. Usage: - To store call artifacts in a specific folder, set this to the full path. Eg. "/folder-name1/folder-name2". - To store call artifacts in the root of the bucket, leave this blank. @default "/"
hmac_access_key: Option<String>This is the HMAC access key offered by GCP for interoperability with S3 clients. Here is the guide on how to create: https://cloud.google.com/storage/docs/authentication/managing-hmackeys#console Usage: - If credential.type is gcp, then this is required. - If credential.type is aws, then this is not required since credential.awsAccessKeyId is used instead.
hmac_secret: Option<String>This is the secret for the HMAC access key. Here is the guide on how to create: https://cloud.google.com/storage/docs/authentication/managing-hmackeys#console Usage: - If credential.type is gcp, then this is required. - If credential.type is aws, then this is not required since credential.awsSecretAccessKey is used instead. Note: This is not returned in the API.
Implementations§
Source§impl BucketPlan
impl BucketPlan
pub fn new(name: String) -> BucketPlan
Trait Implementations§
Source§impl Clone for BucketPlan
impl Clone for BucketPlan
Source§fn clone(&self) -> BucketPlan
fn clone(&self) -> BucketPlan
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BucketPlan
impl Debug for BucketPlan
Source§impl Default for BucketPlan
impl Default for BucketPlan
Source§fn default() -> BucketPlan
fn default() -> BucketPlan
Source§impl<'de> Deserialize<'de> for BucketPlan
impl<'de> Deserialize<'de> for BucketPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for BucketPlan
impl PartialEq for BucketPlan
Source§fn eq(&self, other: &BucketPlan) -> bool
fn eq(&self, other: &BucketPlan) -> bool
self and other values to be equal, and is used by ==.