#![allow(rustdoc::redundant_explicit_links)]
#![allow(rustdoc::broken_intra_doc_links)]
#![no_implicit_prelude]
extern crate async_trait;
extern crate bytes;
extern crate gaxi;
extern crate google_cloud_gax;
extern crate serde;
extern crate serde_json;
extern crate serde_with;
extern crate std;
extern crate tracing;
extern crate wkt;
mod debug;
mod deserialize;
mod serialize;
#[derive(Clone, Default, PartialEq)]
#[non_exhaustive]
pub struct ExternalAccountKey {
pub name: std::string::String,
pub key_id: std::string::String,
pub b64_mac_key: ::bytes::Bytes,
pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
}
impl ExternalAccountKey {
pub fn new() -> Self {
std::default::Default::default()
}
pub fn set_name<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
self.name = v.into();
self
}
pub fn set_key_id<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
self.key_id = v.into();
self
}
pub fn set_b64_mac_key<T: std::convert::Into<::bytes::Bytes>>(mut self, v: T) -> Self {
self.b64_mac_key = v.into();
self
}
}
impl wkt::message::Message for ExternalAccountKey {
fn typename() -> &'static str {
"type.googleapis.com/google.cloud.security.publicca.v1.ExternalAccountKey"
}
}
#[derive(Clone, Default, PartialEq)]
#[non_exhaustive]
pub struct CreateExternalAccountKeyRequest {
pub parent: std::string::String,
pub external_account_key: std::option::Option<crate::model::ExternalAccountKey>,
pub(crate) _unknown_fields: serde_json::Map<std::string::String, serde_json::Value>,
}
impl CreateExternalAccountKeyRequest {
pub fn new() -> Self {
std::default::Default::default()
}
pub fn set_parent<T: std::convert::Into<std::string::String>>(mut self, v: T) -> Self {
self.parent = v.into();
self
}
pub fn set_external_account_key<T>(mut self, v: T) -> Self
where
T: std::convert::Into<crate::model::ExternalAccountKey>,
{
self.external_account_key = std::option::Option::Some(v.into());
self
}
pub fn set_or_clear_external_account_key<T>(mut self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::ExternalAccountKey>,
{
self.external_account_key = v.map(|x| x.into());
self
}
}
impl wkt::message::Message for CreateExternalAccountKeyRequest {
fn typename() -> &'static str {
"type.googleapis.com/google.cloud.security.publicca.v1.CreateExternalAccountKeyRequest"
}
}