Passer au contenu principal
weave / ObjectRef Représente une référence à un objet Weave enregistré. En général, les utilisateurs finaux n’auront pas besoin d’interagir directement avec cette classe. Un ObjectRef contient l’ID du projet, l’ID de l’objet et l’empreinte qui identifient de manière unique un objet enregistré dans le système de stockage de Weave. Exemple
const ref = new ObjectRef('my-project', 'abc123', 'def456');
const uri = ref.uri(); // weave:///my-project/object/abc123:def456

Table des matières

Constructeurs

Propriétés

Méthodes

Constructeurs

constructeur

new ObjectRef(projectId, objectId, digest): ObjectRef

Paramètres

NomType
projectIdstring
objectIdstring
digeststring

Renvoie

ObjectRef

Défini dans

weaveObject.ts:26

Propriétés

digest

digest: string

Défini dans

weaveObject.ts:29

objectId

objectId: string

Défini dans

weaveObject.ts:28

projectId

projectId: string

Défini dans

weaveObject.ts:27

Méthodes

get

get(): Promise<any>

Renvoie

Promise<any>

Défini dans

weaveObject.ts:66

ui_url

ui_url(): string

Renvoie

string

Défini dans

weaveObject.ts:61

uri

uri(): string

Renvoie

string

Défini dans

weaveObject.ts:57

fromUri

fromUri(uri): ObjectRef Crée un ObjectRef à partir d’une chaîne URI Weave.

Paramètres

NomTypeDescription
uristringUne URI Weave au format : weave:///entity/project/object/name:digest

Renvoie

ObjectRef Une nouvelle instance d’ObjectRef Lève Une erreur si le format de l’URI est invalide ou ne correspond pas à une réf. d’objet Exemple
const ref = ObjectRef.fromUri('weave:///my-entity/my-project/object/my-dataset:abc123');

Défini dans

weaveObject.ts:44