pub struct GcpClientConfig {
pub credentials: GcpCredentials,
pub project_id: String,
pub project_number: Option<String>,
pub region: String,
pub service_overrides: Option<GcpServiceOverrides>,
}Expand description
GCP client configuration
JSON schema
{
"description": "GCP client configuration",
"type": "object",
"required": [
"credentials",
"projectId",
"region"
],
"properties": {
"credentials": {
"$ref": "#/components/schemas/GcpCredentials"
},
"projectId": {
"description": "The GCP Project ID.",
"type": "string"
},
"projectNumber": {
"description": "The GCP project number (numeric). Resolved at runtime via Resource Manager API.\nUsed in IAM condition expressions where resource.name uses project number.",
"type": [
"string",
"null"
]
},
"region": {
"description": "The GCP region for resources.",
"type": "string"
},
"serviceOverrides": {
"$ref": "#/components/schemas/GcpServiceOverrides"
}
},
"additionalProperties": false
}Fields§
§credentials: GcpCredentials§project_id: StringThe GCP Project ID.
project_number: Option<String>The GCP project number (numeric). Resolved at runtime via Resource Manager API. Used in IAM condition expressions where resource.name uses project number.
region: StringThe GCP region for resources.
service_overrides: Option<GcpServiceOverrides>Implementations§
Source§impl GcpClientConfig
impl GcpClientConfig
pub fn builder() -> GcpClientConfig
Trait Implementations§
Source§impl Clone for GcpClientConfig
impl Clone for GcpClientConfig
Source§fn clone(&self) -> GcpClientConfig
fn clone(&self) -> GcpClientConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GcpClientConfig
impl Debug for GcpClientConfig
Source§impl<'de> Deserialize<'de> for GcpClientConfig
impl<'de> Deserialize<'de> for GcpClientConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&GcpClientConfig> for GcpClientConfig
impl From<&GcpClientConfig> for GcpClientConfig
Source§fn from(value: &GcpClientConfig) -> Self
fn from(value: &GcpClientConfig) -> Self
Converts to this type from the input type.
Source§impl From<GcpClientConfig> for GcpClientConfig
impl From<GcpClientConfig> for GcpClientConfig
Source§fn from(value: GcpClientConfig) -> Self
fn from(value: GcpClientConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for GcpClientConfig
impl Serialize for GcpClientConfig
Source§impl TryFrom<GcpClientConfig> for GcpClientConfig
impl TryFrom<GcpClientConfig> for GcpClientConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GcpClientConfig) -> Result<Self, ConversionError>
fn try_from(value: GcpClientConfig) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GcpClientConfig
impl RefUnwindSafe for GcpClientConfig
impl Send for GcpClientConfig
impl Sync for GcpClientConfig
impl Unpin for GcpClientConfig
impl UnsafeUnpin for GcpClientConfig
impl UnwindSafe for GcpClientConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more