pub struct Credential {Show 17 fields
pub name: String,
pub id: Option<String>,
pub purpose: EnumValue<Purpose>,
pub read_only: bool,
pub comment: Option<String>,
pub owner: Option<String>,
pub created_at: Option<i64>,
pub created_by: Option<String>,
pub updated_at: Option<i64>,
pub updated_by: Option<String>,
pub used_for_managed_storage: bool,
pub full_name: String,
pub azure_service_principal: MessageField<AzureServicePrincipal>,
pub azure_managed_identity: MessageField<AzureManagedIdentity>,
pub azure_storage_key: MessageField<AzureStorageKey>,
pub aws_iam_role: MessageField<AwsIamRoleConfig>,
pub databricks_gcp_service_account: MessageField<DatabricksGcpServiceAccount>,
/* private fields */
}Expand description
A credential used to access external data sources or services.
Fields§
§name: StringThe credential name.
The name must be unique among storage and service credentials within the metastore.
Field 1: name
id: Option<String>The unique identifier of the credential.
Field 2: id
purpose: EnumValue<Purpose>Indicates the purpose of the credential.
Field 3: purpose
read_only: boolWhether the credential is usable only for read operations.
Only applicable when purpose is STORAGE.
Field 4: read_only
comment: Option<String>Comment associated with the credential.
Field 5: comment
owner: Option<String>Username of current owner of credential.
Field 6: owner
created_at: Option<i64>Time at which this credential was created, in epoch milliseconds.
Field 7: created_at
created_by: Option<String>Username of credential creator.
Field 8: created_by
updated_at: Option<i64>Time at which this credential was last modified, in epoch milliseconds.
Field 9: updated_at
updated_by: Option<String>Username of user who last modified the credential.
Field 10: updated_by
used_for_managed_storage: boolWhether this credential is the current metastore’s root storage credential.
Only applicable when purpose is STORAGE.
Field 11: used_for_managed_storage
full_name: StringThe full name of the credential.
Field 12: full_name
azure_service_principal: MessageField<AzureServicePrincipal>The Azure service principal configuration.
Sealed into the object’s inline sensitive blob (envelope-encrypted, redacted from ordinary reads) rather than stored in the searchable properties.
Field 100: azure_service_principal
azure_managed_identity: MessageField<AzureManagedIdentity>The Azure managed identity configuration.
Field 101: azure_managed_identity
azure_storage_key: MessageField<AzureStorageKey>The Azure storage key configuration.
Field 102: azure_storage_key
aws_iam_role: MessageField<AwsIamRoleConfig>The AWS IAM role configuration.
Field 103: aws_iam_role
databricks_gcp_service_account: MessageField<DatabricksGcpServiceAccount>The Databricks managed GCP service account configuration.
Field 104: databricks_gcp_service_account
Implementations§
Source§impl Credential
impl Credential
Sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
Returns the fully-qualified dot-separated name computed from component fields.
Source§impl Credential
impl Credential
Source§impl Credential
impl Credential
Sourcepub fn with_id(self, value: impl Into<String>) -> Self
pub fn with_id(self, value: impl Into<String>) -> Self
Sets Self::id to Some(value), consuming and returning self.
Sourcepub fn with_comment(self, value: impl Into<String>) -> Self
pub fn with_comment(self, value: impl Into<String>) -> Self
Sets Self::comment to Some(value), consuming and returning self.
Sourcepub fn with_owner(self, value: impl Into<String>) -> Self
pub fn with_owner(self, value: impl Into<String>) -> Self
Sets Self::owner to Some(value), consuming and returning self.
Sourcepub fn with_created_at(self, value: i64) -> Self
pub fn with_created_at(self, value: i64) -> Self
Sets Self::created_at to Some(value), consuming and returning self.
Sourcepub fn with_created_by(self, value: impl Into<String>) -> Self
pub fn with_created_by(self, value: impl Into<String>) -> Self
Sets Self::created_by to Some(value), consuming and returning self.
Sourcepub fn with_updated_at(self, value: i64) -> Self
pub fn with_updated_at(self, value: i64) -> Self
Sets Self::updated_at to Some(value), consuming and returning self.
Sourcepub fn with_updated_by(self, value: impl Into<String>) -> Self
pub fn with_updated_by(self, value: impl Into<String>) -> Self
Sets Self::updated_by to Some(value), consuming and returning self.
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
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 Credential
impl Debug for Credential
Source§impl Default for Credential
impl Default for Credential
Source§fn default() -> Credential
fn default() -> Credential
Source§impl DefaultInstance for Credential
impl DefaultInstance for Credential
Source§fn default_instance() -> &'static Self
fn default_instance() -> &'static Self
Source§impl<'de> Deserialize<'de> for Credentialwhere
Credential: Default,
impl<'de> Deserialize<'de> for Credentialwhere
Credential: Default,
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>,
Source§impl ExtensionSet for Credential
impl ExtensionSet for Credential
Source§const PROTO_FQN: &'static str = "unitycatalog.credentials.v1.Credential"
const PROTO_FQN: &'static str = "unitycatalog.credentials.v1.Credential"
"google.protobuf.FieldOptions". Read moreSource§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
Source§fn unknown_fields_mut(&mut self) -> &mut UnknownFields
fn unknown_fields_mut(&mut self) -> &mut UnknownFields
Source§fn extension<C>(&self, ext: &Extension<C>) -> <C as ExtensionCodec>::Outputwhere
C: ExtensionCodec,
fn extension<C>(&self, ext: &Extension<C>) -> <C as ExtensionCodec>::Outputwhere
C: ExtensionCodec,
Source§fn set_extension<C>(
&mut self,
ext: &Extension<C>,
value: <C as ExtensionCodec>::Value,
)where
C: ExtensionCodec,
fn set_extension<C>(
&mut self,
ext: &Extension<C>,
value: <C as ExtensionCodec>::Value,
)where
C: ExtensionCodec,
Source§fn has_extension<C>(&self, ext: &Extension<C>) -> boolwhere
C: ExtensionCodec,
fn has_extension<C>(&self, ext: &Extension<C>) -> boolwhere
C: ExtensionCodec,
true if any record at the extension’s field number is present. Read moreSource§fn clear_extension<C>(&mut self, ext: &Extension<C>)where
C: ExtensionCodec,
fn clear_extension<C>(&mut self, ext: &Extension<C>)where
C: ExtensionCodec,
Source§fn extension_or_default<C>(
&self,
ext: &Extension<C>,
) -> <C as ExtensionCodec>::Valuewhere
C: ExtensionCodec<Output = Option<<C as ExtensionCodec>::Value>>,
<C as ExtensionCodec>::Value: Default,
fn extension_or_default<C>(
&self,
ext: &Extension<C>,
) -> <C as ExtensionCodec>::Valuewhere
C: ExtensionCodec<Output = Option<<C as ExtensionCodec>::Value>>,
<C as ExtensionCodec>::Value: Default,
[default = ...]
value if absent, or the type’s Default if no proto default was declared. Read moreSource§impl From<Credential> for Resource
impl From<Credential> for Resource
Source§fn from(v: Credential) -> Self
fn from(v: Credential) -> Self
Source§impl HasMessageView for Credential
impl HasMessageView for Credential
Source§type View<'a> = CredentialView<'a>
type View<'a> = CredentialView<'a>
Self, borrowing from a buffer with lifetime
'a.Source§type ViewHandle = CredentialOwnedView
type ViewHandle = CredentialOwnedView
'static owned-view handle for Self
(FooOwnedView).Source§fn decode_view_handle(bytes: Bytes) -> Result<Self::ViewHandle, DecodeError>
fn decode_view_handle(bytes: Bytes) -> Result<Self::ViewHandle, DecodeError>
Source§fn decode_view_handle_with_options(
bytes: Bytes,
opts: &DecodeOptions,
) -> Result<Self::ViewHandle, DecodeError>
fn decode_view_handle_with_options( bytes: Bytes, opts: &DecodeOptions, ) -> Result<Self::ViewHandle, DecodeError>
Source§impl Message for Credential
impl Message for Credential
Source§fn compute_size(&self, __cache: &mut SizeCache) -> u32
fn compute_size(&self, __cache: &mut SizeCache) -> u32
Returns the total encoded size in bytes.
The result is a u32; the protobuf specification requires all
messages to fit within 2 GiB (2,147,483,647 bytes), so a
compliant message will never overflow this type.
Source§fn write_to(&self, __cache: &mut SizeCache, buf: &mut impl BufMut)
fn write_to(&self, __cache: &mut SizeCache, buf: &mut impl BufMut)
cache (populated by a prior
compute_size call on the same cache). Read moreSource§fn merge_field(
&mut self,
tag: Tag,
buf: &mut impl Buf,
depth: u32,
) -> Result<(), DecodeError>
fn merge_field( &mut self, tag: Tag, buf: &mut impl Buf, depth: u32, ) -> Result<(), DecodeError>
buf. Read moreSource§fn encode(&self, buf: &mut impl BufMut)
fn encode(&self, buf: &mut impl BufMut)
Source§fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
fn encode_with_cache(&self, cache: &mut SizeCache, buf: &mut impl BufMut)
SizeCache, for
reuse across many encodes in a hot loop. Clears the cache first.Source§fn encoded_len(&self) -> u32
fn encoded_len(&self) -> u32
Source§fn encode_length_delimited(&self, buf: &mut impl BufMut)
fn encode_length_delimited(&self, buf: &mut impl BufMut)
Source§fn encode_to_bytes(&self) -> Bytes
fn encode_to_bytes(&self) -> Bytes
bytes::Bytes. Read moreSource§fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_from_slice(data: &[u8]) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
fn decode_length_delimited(buf: &mut impl Buf) -> Result<Self, DecodeError>where
Self: Sized,
Source§fn merge_to_limit(
&mut self,
buf: &mut impl Buf,
depth: u32,
limit: usize,
) -> Result<(), DecodeError>
fn merge_to_limit( &mut self, buf: &mut impl Buf, depth: u32, limit: usize, ) -> Result<(), DecodeError>
Source§fn merge_group(
&mut self,
buf: &mut impl Buf,
depth: u32,
field_number: u32,
) -> Result<(), DecodeError>
fn merge_group( &mut self, buf: &mut impl Buf, depth: u32, field_number: u32, ) -> Result<(), DecodeError>
buf, reading fields until an
EndGroup tag with the given field_number is encountered. Read moreSource§fn merge(&mut self, buf: &mut impl Buf, depth: u32) -> Result<(), DecodeError>
fn merge(&mut self, buf: &mut impl Buf, depth: u32) -> Result<(), DecodeError>
Source§fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
fn merge_from_slice(&mut self, data: &[u8]) -> Result<(), DecodeError>
Source§fn merge_length_delimited(
&mut self,
buf: &mut impl Buf,
depth: u32,
) -> Result<(), DecodeError>
fn merge_length_delimited( &mut self, buf: &mut impl Buf, depth: u32, ) -> Result<(), DecodeError>
Source§impl MessageName for Credential
impl MessageName for Credential
Source§const PACKAGE: &'static str = "unitycatalog.credentials.v1"
const PACKAGE: &'static str = "unitycatalog.credentials.v1"
Source§const NAME: &'static str = "Credential"
const NAME: &'static str = "Credential"
. between nesting levels. Read more