#[non_exhaustive]pub struct GCPSTSServiceAccountUpdateRequest {
pub data: Option<GCPSTSServiceAccountUpdateRequestData>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Service account info.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.data: Option<GCPSTSServiceAccountUpdateRequestData>
Data on your service account.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl GCPSTSServiceAccountUpdateRequest
impl GCPSTSServiceAccountUpdateRequest
Sourcepub fn new() -> GCPSTSServiceAccountUpdateRequest
pub fn new() -> GCPSTSServiceAccountUpdateRequest
Examples found in repository?
examples/v2_gcp-integration_UpdateGCPSTSAccount_3205636354.rs (line 14)
11async fn main() {
12 // there is a valid "gcp_sts_account" in the system
13 let gcp_sts_account_data_id = std::env::var("GCP_STS_ACCOUNT_DATA_ID").unwrap();
14 let body = GCPSTSServiceAccountUpdateRequest::new().data(
15 GCPSTSServiceAccountUpdateRequestData::new()
16 .attributes(
17 GCPSTSServiceAccountAttributes::new()
18 .client_email("Test-252bf553ef04b351@example.com".to_string())
19 .resource_collection_enabled(true),
20 )
21 .id(gcp_sts_account_data_id.clone())
22 .type_(GCPServiceAccountType::GCP_SERVICE_ACCOUNT),
23 );
24 let configuration = datadog::Configuration::new();
25 let api = GCPIntegrationAPI::with_config(configuration);
26 let resp = api
27 .update_gcpsts_account(gcp_sts_account_data_id.clone(), body)
28 .await;
29 if let Ok(value) = resp {
30 println!("{:#?}", value);
31 } else {
32 println!("{:#?}", resp.unwrap_err());
33 }
34}
More examples
examples/v2_gcp-integration_UpdateGCPSTSAccount.rs (line 13)
10async fn main() {
11 // there is a valid "gcp_sts_account" in the system
12 let gcp_sts_account_data_id = std::env::var("GCP_STS_ACCOUNT_DATA_ID").unwrap();
13 let body = GCPSTSServiceAccountUpdateRequest::new().data(
14 GCPSTSServiceAccountUpdateRequestData::new()
15 .attributes(
16 GCPSTSServiceAccountAttributes::new()
17 .client_email("Test-252bf553ef04b351@example.com".to_string())
18 .host_filters(vec!["foo:bar".to_string()]),
19 )
20 .id(gcp_sts_account_data_id.clone())
21 .type_(GCPServiceAccountType::GCP_SERVICE_ACCOUNT),
22 );
23 let configuration = datadog::Configuration::new();
24 let api = GCPIntegrationAPI::with_config(configuration);
25 let resp = api
26 .update_gcpsts_account(gcp_sts_account_data_id.clone(), body)
27 .await;
28 if let Ok(value) = resp {
29 println!("{:#?}", value);
30 } else {
31 println!("{:#?}", resp.unwrap_err());
32 }
33}
examples/v2_gcp-integration_UpdateGCPSTSAccount_2241994060.rs (line 13)
10async fn main() {
11 // there is a valid "gcp_sts_account" in the system
12 let gcp_sts_account_data_id = std::env::var("GCP_STS_ACCOUNT_DATA_ID").unwrap();
13 let body = GCPSTSServiceAccountUpdateRequest::new().data(
14 GCPSTSServiceAccountUpdateRequestData::new()
15 .attributes(
16 GCPSTSServiceAccountAttributes::new()
17 .client_email("Test-252bf553ef04b351@example.com".to_string())
18 .cloud_run_revision_filters(vec!["merp:derp".to_string()]),
19 )
20 .id(gcp_sts_account_data_id.clone())
21 .type_(GCPServiceAccountType::GCP_SERVICE_ACCOUNT),
22 );
23 let configuration = datadog::Configuration::new();
24 let api = GCPIntegrationAPI::with_config(configuration);
25 let resp = api
26 .update_gcpsts_account(gcp_sts_account_data_id.clone(), body)
27 .await;
28 if let Ok(value) = resp {
29 println!("{:#?}", value);
30 } else {
31 println!("{:#?}", resp.unwrap_err());
32 }
33}
Sourcepub fn data(self, value: GCPSTSServiceAccountUpdateRequestData) -> Self
pub fn data(self, value: GCPSTSServiceAccountUpdateRequestData) -> Self
Examples found in repository?
examples/v2_gcp-integration_UpdateGCPSTSAccount_3205636354.rs (lines 14-23)
11async fn main() {
12 // there is a valid "gcp_sts_account" in the system
13 let gcp_sts_account_data_id = std::env::var("GCP_STS_ACCOUNT_DATA_ID").unwrap();
14 let body = GCPSTSServiceAccountUpdateRequest::new().data(
15 GCPSTSServiceAccountUpdateRequestData::new()
16 .attributes(
17 GCPSTSServiceAccountAttributes::new()
18 .client_email("Test-252bf553ef04b351@example.com".to_string())
19 .resource_collection_enabled(true),
20 )
21 .id(gcp_sts_account_data_id.clone())
22 .type_(GCPServiceAccountType::GCP_SERVICE_ACCOUNT),
23 );
24 let configuration = datadog::Configuration::new();
25 let api = GCPIntegrationAPI::with_config(configuration);
26 let resp = api
27 .update_gcpsts_account(gcp_sts_account_data_id.clone(), body)
28 .await;
29 if let Ok(value) = resp {
30 println!("{:#?}", value);
31 } else {
32 println!("{:#?}", resp.unwrap_err());
33 }
34}
More examples
examples/v2_gcp-integration_UpdateGCPSTSAccount.rs (lines 13-22)
10async fn main() {
11 // there is a valid "gcp_sts_account" in the system
12 let gcp_sts_account_data_id = std::env::var("GCP_STS_ACCOUNT_DATA_ID").unwrap();
13 let body = GCPSTSServiceAccountUpdateRequest::new().data(
14 GCPSTSServiceAccountUpdateRequestData::new()
15 .attributes(
16 GCPSTSServiceAccountAttributes::new()
17 .client_email("Test-252bf553ef04b351@example.com".to_string())
18 .host_filters(vec!["foo:bar".to_string()]),
19 )
20 .id(gcp_sts_account_data_id.clone())
21 .type_(GCPServiceAccountType::GCP_SERVICE_ACCOUNT),
22 );
23 let configuration = datadog::Configuration::new();
24 let api = GCPIntegrationAPI::with_config(configuration);
25 let resp = api
26 .update_gcpsts_account(gcp_sts_account_data_id.clone(), body)
27 .await;
28 if let Ok(value) = resp {
29 println!("{:#?}", value);
30 } else {
31 println!("{:#?}", resp.unwrap_err());
32 }
33}
examples/v2_gcp-integration_UpdateGCPSTSAccount_2241994060.rs (lines 13-22)
10async fn main() {
11 // there is a valid "gcp_sts_account" in the system
12 let gcp_sts_account_data_id = std::env::var("GCP_STS_ACCOUNT_DATA_ID").unwrap();
13 let body = GCPSTSServiceAccountUpdateRequest::new().data(
14 GCPSTSServiceAccountUpdateRequestData::new()
15 .attributes(
16 GCPSTSServiceAccountAttributes::new()
17 .client_email("Test-252bf553ef04b351@example.com".to_string())
18 .cloud_run_revision_filters(vec!["merp:derp".to_string()]),
19 )
20 .id(gcp_sts_account_data_id.clone())
21 .type_(GCPServiceAccountType::GCP_SERVICE_ACCOUNT),
22 );
23 let configuration = datadog::Configuration::new();
24 let api = GCPIntegrationAPI::with_config(configuration);
25 let resp = api
26 .update_gcpsts_account(gcp_sts_account_data_id.clone(), body)
27 .await;
28 if let Ok(value) = resp {
29 println!("{:#?}", value);
30 } else {
31 println!("{:#?}", resp.unwrap_err());
32 }
33}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for GCPSTSServiceAccountUpdateRequest
impl Clone for GCPSTSServiceAccountUpdateRequest
Source§fn clone(&self) -> GCPSTSServiceAccountUpdateRequest
fn clone(&self) -> GCPSTSServiceAccountUpdateRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for GCPSTSServiceAccountUpdateRequest
impl<'de> Deserialize<'de> for GCPSTSServiceAccountUpdateRequest
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 PartialEq for GCPSTSServiceAccountUpdateRequest
impl PartialEq for GCPSTSServiceAccountUpdateRequest
Source§fn eq(&self, other: &GCPSTSServiceAccountUpdateRequest) -> bool
fn eq(&self, other: &GCPSTSServiceAccountUpdateRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GCPSTSServiceAccountUpdateRequest
Auto Trait Implementations§
impl Freeze for GCPSTSServiceAccountUpdateRequest
impl RefUnwindSafe for GCPSTSServiceAccountUpdateRequest
impl Send for GCPSTSServiceAccountUpdateRequest
impl Sync for GCPSTSServiceAccountUpdateRequest
impl Unpin for GCPSTSServiceAccountUpdateRequest
impl UnwindSafe for GCPSTSServiceAccountUpdateRequest
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