Skip to main content

SchemaClient

Struct SchemaClient 

Source
pub struct SchemaClient { /* private fields */ }
Expand description

A client scoped to a single schema.

Implementations§

Source§

impl SchemaClient

Source

pub fn new( catalog_name: impl Into<String>, schema_name: impl Into<String>, client: SchemaServiceClient, ) -> Self

Create a client bound to the resource’s name components.

Source

pub fn from_full_name( full_name: impl Into<String>, client: SchemaServiceClient, ) -> Self

Create a schema client from its dot-joined full name (e.g. "catalog_name.schema_name").

Source

pub fn catalog_name(&self) -> &str

The catalog_name component of this resource’s name.

Source

pub fn name(&self) -> &str

This resource’s own name (the leaf component).

Source

pub fn full_name(&self) -> String

The fully-qualified name of this resource (its dot-joined name components).

Source

pub fn get(&self) -> GetSchemaBuilder

Gets the specified schema within the metastore. The caller must be a metastore admin, the owner of the schema, or a user that has the USE_SCHEMA privilege on the schema.

Source

pub fn update(&self) -> UpdateSchemaBuilder

Updates a schema for a catalog. The caller must be the owner of the schema or a metastore admin. If the caller is a metastore admin, only the owner field can be changed in the update. If the name field must be updated, the caller must be a metastore admin or have the CREATE_SCHEMA privilege on the parent catalog.

Source

pub fn delete(&self) -> DeleteSchemaBuilder

Deletes the specified schema from the parent catalog. The caller must be the owner of the schema or an owner of the parent catalog.

Source

pub fn agent(&self, agent_name: impl Into<String>) -> AgentClient

Access a agent within this resource.

Source

pub fn create_agent( &self, name: impl Into<String>, invocation_protocol: InvocationProtocol, endpoint: impl Into<String>, ) -> CreateAgentBuilder

Create a agent within this resource.

Source

pub fn list_agents(&self) -> ListAgentsBuilder

List agent resources within this resource.

Source

pub fn agent_skill( &self, agent_skill_name: impl Into<String>, ) -> AgentSkillClient

Access a agent_skill within this resource.

Source

pub fn create_agent_skill( &self, name: impl Into<String>, agent_skill_type: AgentSkillType, ) -> CreateAgentSkillBuilder

Create a agent_skill within this resource.

Source

pub fn list_agent_skills(&self) -> ListAgentSkillsBuilder

List agent_skill resources within this resource.

Source

pub fn function(&self, function_name: impl Into<String>) -> FunctionClient

Access a function within this resource.

Source

pub fn create_function( &self, function_info: CreateFunction, ) -> CreateFunctionBuilder

Create a function within this resource.

Source

pub fn list_functions(&self) -> ListFunctionsBuilder

List function resources within this resource.

Source

pub fn registered_model( &self, registered_model_name: impl Into<String>, ) -> RegisteredModelClient

Access a registered_model within this resource.

Source

pub fn create_registered_model( &self, name: impl Into<String>, ) -> CreateRegisteredModelBuilder

Create a registered_model within this resource.

Source

pub fn list_registered_models(&self) -> ListRegisteredModelsBuilder

List registered_model resources within this resource.

Source

pub fn table(&self, table_name: impl Into<String>) -> TableClient

Access a table within this resource.

Source

pub fn create_table( &self, name: impl Into<String>, table_type: TableType, data_source_format: DataSourceFormat, ) -> CreateTableBuilder

Create a table within this resource.

Source

pub fn list_tables(&self) -> ListTablesBuilder

List table resources within this resource.

Source

pub fn volume(&self, volume_name: impl Into<String>) -> VolumeClient

Access a volume within this resource.

Source

pub fn create_volume( &self, name: impl Into<String>, volume_type: VolumeType, ) -> CreateVolumeBuilder

Create a volume within this resource.

Source

pub fn list_volumes(&self) -> ListVolumesBuilder

List volume resources within this resource.

Trait Implementations§

Source§

impl Clone for SchemaClient

Source§

fn clone(&self) -> SchemaClient

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more