#[non_exhaustive]pub struct Repository {
pub name: String,
pub create_time: Option<Timestamp>,
pub display_name: String,
pub git_remote_settings: Option<GitRemoteSettings>,
pub npmrc_environment_variables_secret_version: String,
pub workspace_compilation_overrides: Option<WorkspaceCompilationOverrides>,
pub labels: HashMap<String, String>,
pub set_authenticated_user_admin: bool,
pub service_account: String,
pub kms_key_name: String,
pub data_encryption_state: Option<DataEncryptionState>,
pub internal_metadata: Option<String>,
/* private fields */
}Expand description
Represents a Dataform Git repository.
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 repository’s name.
create_time: Option<Timestamp>Output only. The timestamp of when the repository was created.
display_name: StringOptional. The repository’s user-friendly name.
git_remote_settings: Option<GitRemoteSettings>Optional. If set, configures this repository to be linked to a Git remote.
npmrc_environment_variables_secret_version: StringOptional. The name of the Secret Manager secret version to be used to
interpolate variables into the .npmrc file for package installation
operations. Must be in the format projects/*/secrets/*/versions/*. The
file itself must be in a JSON format.
workspace_compilation_overrides: Option<WorkspaceCompilationOverrides>Optional. If set, fields of workspace_compilation_overrides override the
default compilation settings that are specified in dataform.json when
creating workspace-scoped compilation results. See documentation for
WorkspaceCompilationOverrides for more information.
labels: HashMap<String, String>Optional. Repository user labels.
set_authenticated_user_admin: boolOptional. Input only. If set to true, the authenticated user will be granted the roles/dataform.admin role on the created repository.
service_account: StringOptional. The service account to run workflow invocations under.
kms_key_name: StringOptional. The reference to a KMS encryption key. If provided, it will be
used to encrypt user data in the repository and all child resources. It is
not possible to add or update the encryption key after the repository is
created. Example:
projects/{kms_project}/locations/{location}/keyRings/{key_location}/cryptoKeys/{key}
data_encryption_state: Option<DataEncryptionState>Output only. A data encryption state of a Git repository if this Repository 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.
Implementations§
Source§impl Repository
impl Repository
pub fn new() -> Self
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.
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.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_git_remote_settings<T>(self, v: T) -> Selfwhere
T: Into<GitRemoteSettings>,
pub fn set_git_remote_settings<T>(self, v: T) -> Selfwhere
T: Into<GitRemoteSettings>,
Sets the value of git_remote_settings.
Sourcepub fn set_or_clear_git_remote_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<GitRemoteSettings>,
pub fn set_or_clear_git_remote_settings<T>(self, v: Option<T>) -> Selfwhere
T: Into<GitRemoteSettings>,
Sets or clears the value of git_remote_settings.
Sourcepub fn set_npmrc_environment_variables_secret_version<T: Into<String>>(
self,
v: T,
) -> Self
pub fn set_npmrc_environment_variables_secret_version<T: Into<String>>( self, v: T, ) -> Self
Sets the value of npmrc_environment_variables_secret_version.
Sourcepub fn set_workspace_compilation_overrides<T>(self, v: T) -> Selfwhere
T: Into<WorkspaceCompilationOverrides>,
pub fn set_workspace_compilation_overrides<T>(self, v: T) -> Selfwhere
T: Into<WorkspaceCompilationOverrides>,
Sets the value of workspace_compilation_overrides.
Sourcepub fn set_or_clear_workspace_compilation_overrides<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<WorkspaceCompilationOverrides>,
pub fn set_or_clear_workspace_compilation_overrides<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<WorkspaceCompilationOverrides>,
Sets or clears the value of workspace_compilation_overrides.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_set_authenticated_user_admin<T: Into<bool>>(self, v: T) -> Self
pub fn set_set_authenticated_user_admin<T: Into<bool>>(self, v: T) -> Self
Sets the value of set_authenticated_user_admin.
Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
Sourcepub fn set_kms_key_name<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key_name<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key_name.
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.
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.
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.
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.
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more