Skip to main content

OdspClient Class

OdspClient provides the ability to have a Fluid object backed by the ODSP service within the context of Microsoft 365 (M365) tenants. \

This API is provided as a beta preview and may change without notice.

To use, import via @fluidframework/odsp-client/beta.

For more information about our API support guarantees, see here.

Sealed

This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.

Signature

/** @sealed */
export declare class OdspClient

Constructors

ConstructorAlertsDescription
(constructor)(properties)BetaConstructs a new instance of the OdspClient class

Methods

MethodAlertsReturn TypeDescription
createContainer(containerSchema)BetaPromise<{ container: IOdspFluidContainer<T>; services: IOdspContainerServices; }>
getContainer(id, containerSchema)BetaPromise<{ container: IOdspFluidContainer<T>; services: IOdspContainerServices; }>

Constructor Details

(constructor)

Constructs a new instance of the OdspClient class

This API is provided as a beta preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

constructor(properties: OdspClientProps);

Parameters

ParameterTypeDescription
propertiesOdspClientProps

Method Details

createContainer

This API is provided as a beta preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

createContainer<T extends ContainerSchema>(containerSchema: T): Promise<{
container: IOdspFluidContainer<T>;
services: IOdspContainerServices;
}>;
Type Parameters
ParameterConstraintDescription
TContainerSchema

Parameters

ParameterTypeDescription
containerSchemaT

Returns

Return type: Promise<{ container: IOdspFluidContainer<T>; services: IOdspContainerServices; }>

getContainer

This API is provided as a beta preview and may change without notice.

For more information about our API support guarantees, see here.

Signature

getContainer<T extends ContainerSchema>(id: string, containerSchema: T): Promise<{
container: IOdspFluidContainer<T>;
services: IOdspContainerServices;
}>;
Type Parameters
ParameterConstraintDescription
TContainerSchema

Parameters

ParameterTypeDescription
idstring
containerSchemaT

Returns

Return type: Promise<{ container: IOdspFluidContainer<T>; services: IOdspContainerServices; }>