#[non_exhaustive]pub struct MulticloudDataTransferConfig {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub etag: String,
pub description: String,
pub destinations_count: i32,
pub destinations_active_count: i32,
pub services: HashMap<String, StateTimeline>,
pub uid: String,
/* private fields */
}Expand description
The MulticloudDataTransferConfig resource. It lists the services that you
configure for Data Transfer Essentials billing and metering.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The name of the MulticloudDataTransferConfig resource.
Format:
projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}.
create_time: Option<Timestamp>Output only. Time when the MulticloudDataTransferConfig resource was
created.
update_time: Option<Timestamp>Output only. Time when the MulticloudDataTransferConfig resource was
updated.
labels: HashMap<String, String>Optional. User-defined labels.
etag: StringThe etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.
description: StringOptional. A description of this resource.
destinations_count: i32Output only. The number of Destination resources configured for the
MulticloudDataTransferConfig resource.
destinations_active_count: i32Output only. The number of Destination resources in use with the
MulticloudDataTransferConfig resource.
services: HashMap<String, StateTimeline>Optional. Maps services to their current or planned states. Service names
are keys, and the associated values describe the state of the service. If a
state change is expected, the value is either ADDING or DELETING,
depending on the actions taken.
Sample output: “services”: { “big-query”: { “states”: [ { “effectiveTime”: “2024-12-12T08:00:00Z” “state”: “ADDING”, }, ] }, “cloud-storage”: { “states”: [ { “state”: “ACTIVE”, } ] } }
uid: StringOutput only. The Google-generated unique ID for the
MulticloudDataTransferConfig resource. This value is unique across all
MulticloudDataTransferConfig resources. If a resource is deleted and
another with the same name is created, the new resource is assigned a
different and unique ID.
Implementations§
Source§impl MulticloudDataTransferConfig
impl MulticloudDataTransferConfig
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = MulticloudDataTransferConfig::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = MulticloudDataTransferConfig::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = MulticloudDataTransferConfig::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = MulticloudDataTransferConfig::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = MulticloudDataTransferConfig::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = MulticloudDataTransferConfig::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
§Example
let x = MulticloudDataTransferConfig::new().set_description("example");Sourcepub fn set_destinations_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_destinations_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of destinations_count.
§Example
let x = MulticloudDataTransferConfig::new().set_destinations_count(42);Sourcepub fn set_destinations_active_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_destinations_active_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of destinations_active_count.
§Example
let x = MulticloudDataTransferConfig::new().set_destinations_active_count(42);Sourcepub fn set_services<T, K, V>(self, v: T) -> Self
pub fn set_services<T, K, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for MulticloudDataTransferConfig
impl Clone for MulticloudDataTransferConfig
Source§fn clone(&self) -> MulticloudDataTransferConfig
fn clone(&self) -> MulticloudDataTransferConfig
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 MulticloudDataTransferConfig
impl Debug for MulticloudDataTransferConfig
Source§impl Default for MulticloudDataTransferConfig
impl Default for MulticloudDataTransferConfig
Source§fn default() -> MulticloudDataTransferConfig
fn default() -> MulticloudDataTransferConfig
impl StructuralPartialEq for MulticloudDataTransferConfig
Auto Trait Implementations§
impl Freeze for MulticloudDataTransferConfig
impl RefUnwindSafe for MulticloudDataTransferConfig
impl Send for MulticloudDataTransferConfig
impl Sync for MulticloudDataTransferConfig
impl Unpin for MulticloudDataTransferConfig
impl UnsafeUnpin for MulticloudDataTransferConfig
impl UnwindSafe for MulticloudDataTransferConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request