pub struct ExternalStorage<'c, C: Config> { /* private fields */ }Available on crate feature
administration only.Expand description
Manage organization external storage.
Implementations§
Source§impl<'c, C: Config> ExternalStorage<'c, C>
impl<'c, C: Config> ExternalStorage<'c, C>
pub fn new(client: &'c Client<C>) -> Self
Sourcepub async fn create(
&self,
request: CreateExternalStorageBody,
) -> Result<ExternalStorageResponse, OpenAIError>
pub async fn create( &self, request: CreateExternalStorageBody, ) -> Result<ExternalStorageResponse, OpenAIError>
Create external storage.
Sourcepub async fn create_byot<T0: Serialize, R: DeserializeOwned>(
&self,
request: T0,
) -> Result<R, OpenAIError>
pub async fn create_byot<T0: Serialize, R: DeserializeOwned>( &self, request: T0, ) -> Result<R, OpenAIError>
Create external storage.
Sourcepub async fn list(&self) -> Result<ExternalStorageListResource, OpenAIError>
pub async fn list(&self) -> Result<ExternalStorageListResource, OpenAIError>
List external storage.
Sourcepub async fn list_byot<R: DeserializeOwned>(&self) -> Result<R, OpenAIError>
pub async fn list_byot<R: DeserializeOwned>(&self) -> Result<R, OpenAIError>
List external storage.
Sourcepub async fn retrieve(
&self,
id: &str,
) -> Result<ExternalStorageResponse, OpenAIError>
pub async fn retrieve( &self, id: &str, ) -> Result<ExternalStorageResponse, OpenAIError>
Retrieve external storage.
Sourcepub async fn retrieve_byot<T0: Display, R: DeserializeOwned>(
&self,
id: T0,
) -> Result<R, OpenAIError>
pub async fn retrieve_byot<T0: Display, R: DeserializeOwned>( &self, id: T0, ) -> Result<R, OpenAIError>
Retrieve external storage.
Sourcepub async fn delete(
&self,
id: &str,
) -> Result<ExternalStorageDeletedResource, OpenAIError>
pub async fn delete( &self, id: &str, ) -> Result<ExternalStorageDeletedResource, OpenAIError>
Delete external storage.
Sourcepub async fn delete_byot<T0: Display, R: DeserializeOwned>(
&self,
id: T0,
) -> Result<R, OpenAIError>
pub async fn delete_byot<T0: Display, R: DeserializeOwned>( &self, id: T0, ) -> Result<R, OpenAIError>
Delete external storage.
Sourcepub async fn validate(
&self,
id: &str,
) -> Result<ExternalStorageResponse, OpenAIError>
pub async fn validate( &self, id: &str, ) -> Result<ExternalStorageResponse, OpenAIError>
Validate external storage.
Sourcepub async fn validate_byot<T0: Display, R: DeserializeOwned>(
&self,
id: T0,
) -> Result<R, OpenAIError>
pub async fn validate_byot<T0: Display, R: DeserializeOwned>( &self, id: T0, ) -> Result<R, OpenAIError>
Validate external storage.
Trait Implementations§
Source§impl<'c, C: Config> RequestOptionsBuilder for ExternalStorage<'c, C>
Available on crate feature _api only.
impl<'c, C: Config> RequestOptionsBuilder for ExternalStorage<'c, C>
Available on crate feature
_api only.Source§fn options_mut(&mut self) -> &mut RequestOptions
fn options_mut(&mut self) -> &mut RequestOptions
Get mutable reference to RequestOptions (for building)
Source§fn options(&self) -> &RequestOptions
fn options(&self) -> &RequestOptions
Get reference to RequestOptions
Source§fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
fn header<K, V>(self, key: K, value: V) -> Result<Self, OpenAIError>
Add a single header to RequestOptions
Auto Trait Implementations§
impl<'c, C> !RefUnwindSafe for ExternalStorage<'c, C>
impl<'c, C> !UnwindSafe for ExternalStorage<'c, C>
impl<'c, C> Freeze for ExternalStorage<'c, C>
impl<'c, C> Send for ExternalStorage<'c, C>
impl<'c, C> Sync for ExternalStorage<'c, C>
impl<'c, C> Unpin for ExternalStorage<'c, C>
impl<'c, C> UnsafeUnpin for ExternalStorage<'c, C>where
&'c Client<C>: UnsafeUnpin,
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
Mutably borrows from an owned value. Read more