#[non_exhaustive]pub struct Workspace {
pub name: String,
pub create_time: Option<Timestamp>,
pub data_encryption_state: Option<DataEncryptionState>,
pub internal_metadata: Option<String>,
pub disable_moves: Option<bool>,
pub private_resource_metadata: Option<PrivateResourceMetadata>,
/* private fields */
}Expand description
Represents a Dataform Git workspace.
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 workspace’s name.
create_time: Option<Timestamp>Output only. The timestamp of when the workspace was created.
data_encryption_state: Option<DataEncryptionState>Output only. A data encryption state of a Git repository if this Workspace is protected by a KMS key.
internal_metadata: Option<String>Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.
disable_moves: Option<bool>Optional. If set to true, workspaces will not be moved if its linked Repository is moved. Instead, it will be deleted.
private_resource_metadata: Option<PrivateResourceMetadata>Output only. Metadata indicating whether this resource is user-scoped. For
Workspace resources, the user_scoped field is always true.
Implementations§
Source§impl Workspace
impl Workspace
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 = Workspace::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 = Workspace::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Workspace::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_data_encryption_state<T>(self, v: T) -> Selfwhere
T: Into<DataEncryptionState>,
pub fn set_data_encryption_state<T>(self, v: T) -> Selfwhere
T: Into<DataEncryptionState>,
Sets the value of data_encryption_state.
§Example
use google_cloud_dataform_v1::model::DataEncryptionState;
let x = Workspace::new().set_data_encryption_state(DataEncryptionState::default()/* use setters */);Sourcepub fn set_or_clear_data_encryption_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<DataEncryptionState>,
pub fn set_or_clear_data_encryption_state<T>(self, v: Option<T>) -> Selfwhere
T: Into<DataEncryptionState>,
Sets or clears the value of data_encryption_state.
§Example
use google_cloud_dataform_v1::model::DataEncryptionState;
let x = Workspace::new().set_or_clear_data_encryption_state(Some(DataEncryptionState::default()/* use setters */));
let x = Workspace::new().set_or_clear_data_encryption_state(None::<DataEncryptionState>);Sourcepub fn set_internal_metadata<T>(self, v: T) -> Self
pub fn set_internal_metadata<T>(self, v: T) -> Self
Sets the value of internal_metadata.
§Example
let x = Workspace::new().set_internal_metadata("example");Sourcepub fn set_or_clear_internal_metadata<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_internal_metadata<T>(self, v: Option<T>) -> Self
Sets or clears the value of internal_metadata.
§Example
let x = Workspace::new().set_or_clear_internal_metadata(Some("example"));
let x = Workspace::new().set_or_clear_internal_metadata(None::<String>);Sourcepub fn set_disable_moves<T>(self, v: T) -> Self
pub fn set_disable_moves<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_disable_moves<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_disable_moves<T>(self, v: Option<T>) -> Self
Sets or clears the value of disable_moves.
§Example
let x = Workspace::new().set_or_clear_disable_moves(Some(false));
let x = Workspace::new().set_or_clear_disable_moves(None::<bool>);Sourcepub fn set_private_resource_metadata<T>(self, v: T) -> Selfwhere
T: Into<PrivateResourceMetadata>,
pub fn set_private_resource_metadata<T>(self, v: T) -> Selfwhere
T: Into<PrivateResourceMetadata>,
Sets the value of private_resource_metadata.
§Example
use google_cloud_dataform_v1::model::PrivateResourceMetadata;
let x = Workspace::new().set_private_resource_metadata(PrivateResourceMetadata::default()/* use setters */);Sourcepub fn set_or_clear_private_resource_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrivateResourceMetadata>,
pub fn set_or_clear_private_resource_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrivateResourceMetadata>,
Sets or clears the value of private_resource_metadata.
§Example
use google_cloud_dataform_v1::model::PrivateResourceMetadata;
let x = Workspace::new().set_or_clear_private_resource_metadata(Some(PrivateResourceMetadata::default()/* use setters */));
let x = Workspace::new().set_or_clear_private_resource_metadata(None::<PrivateResourceMetadata>);Trait Implementations§
impl StructuralPartialEq for Workspace
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin for Workspace
impl UnwindSafe for Workspace
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